![]() |
[Closed] General MDI Accelerators Problem |
Post Reply ![]() |
Author | |
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() Posted: 04 November 2006 at 4:01am |
Hi Oleg,
In an MDI app. I'm having problems, some of which are seen in the Codejock samples. It would be great to get Accelerators working here, I can always add some keyboard hooks if needed as a workaround but would rather see if is a Simon problem (as it so often is). [1] In the DockingPane\PaneSample why do the File menu's accelerators (Ctrl+N etc.) not work when a Pane has focus? They work when the View has focus. More specifically, what do I have to do so that the acclerators work when the panes have focus? This answer may help with [2]. [2] I have a rather convoluted setup (see attached picture).
Screenshot here: http://www.hb9drv.ch/tmp/pics/dm001.jpg |
|
Simon HB9DRV
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Override PreTranslateMessage(MSG* pMsg) for your dialogs and call CWnd::PreTranslateMessage instead of CDialog::PreTranslateMessage
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
Well done - you really know MFC ![]() |
|
Simon HB9DRV
|
|
![]() |
|
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
FYI - to allow tabbing to work you must call CDialog::PreTranslateMessage for WM_KEYFIRST, WM_KEYDOWN, WM_KEYUP when wParam == VK_TAB. |
|
Simon HB9DRV
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |