Print Page | Close Window

CXTPPropertyPage pane + accelerators?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=16844
Printed Date: 28 April 2024 at 3:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyPage pane + accelerators?
Posted By: znakeeye
Subject: CXTPPropertyPage pane + accelerators?
Date 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 - 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/



Replies:
Posted By: znakeeye
Date 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/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net