![]() |
CXTPPropertyPage pane + accelerators? |
Post Reply
|
| Author | |
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPPropertyPage pane + accelerators?Posted: 17 June 2010 at 5:26pm |
|
pCommandBars ->GetShortcutManager()->SetAccelerators(IDR_MAINFRAME); Then I have some CXTPPropertyPage derived panes. Inside these panes, the accelerators do not work! I also used the trick described here: http://forum.codejock.com/forum_posts.asp?TID=16194What do I need to do to get accelerators working in these panes?
|
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 June 2010 at 5:36pm |
|
I'm da man! :)
if (GetMainFrame().GetCommandBars()->GetShortcutManager()->TranslateAccelerator(pMsg))
return TRUE;
return CDialog::PreTranslateMessage(pMsg);
|
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
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 |