PB MFC

From Mesdoc

(Difference between revisions)
Line 1: Line 1:
-
 
PB raccourcis
PB raccourcis
Line 10: Line 9:
http://www.codeproject.com/dialog/pretransdialog01.asp
http://www.codeproject.com/dialog/pretransdialog01.asp
 +
 +
 +
Let's say you have a menu in your dialog based app. And you have an accelerator key for some particular task. You'll soon be disappointed to find that the hotkey does not work. The problem is that the modal dialog app's message loop does not call TranslateAccelerator. I do not know why this is so. Presumable the Microsoft team decided that people shouldn't use dialog based apps to write complicated applications, with hotkeys and menus.

Revision as of 12:37, 24 August 2006

PB raccourcis

hAccelTable dialog

http://www.codeproject.com/ce/ltwtdlg.asp


  • Keyboard messages/accelerators handling in MFC dialog based applications

http://www.codeproject.com/dialog/pretransdialog01.asp


Let's say you have a menu in your dialog based app. And you have an accelerator key for some particular task. You'll soon be disappointed to find that the hotkey does not work. The problem is that the modal dialog app's message loop does not call TranslateAccelerator. I do not know why this is so. Presumable the Microsoft team decided that people shouldn't use dialog based apps to write complicated applications, with hotkeys and menus.

Personal tools