PB MFC
From Mesdoc
(Difference between revisions)
Line 12: | Line 12: | ||
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. | 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. | ||
+ | |||
+ | |||
+ | * Dialog App | ||
+ | |||
+ | http://www.flounder.com/dialogapp.htm |
Revision as of 13:06, 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.
- Dialog App