Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - CXTPPropertyPage pane + accelerators?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyPage pane + accelerators?

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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=16194
 
What do I need to do to get accelerators working in these panes?
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.