Handle pane-toolbar commands in CMainFrame |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 12 August 2009 at 5:09am |
Correct me if I'm wrong, but shouldn't all commands be propagated from CMainFrame and then routed?
When I put a CXTPToolBar inside a pane, the commands are only sent to this window. A solution is to set the owner:
// Propagate toolbar commands to main frame!
m_wndToolBar.SetOwner(AfxGetMainWnd());
Is this the best way of doing this?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
yes, it's right solution.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |