Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Handle pane-toolbar commands in CMainFrame
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Handle pane-toolbar commands in CMainFrame

 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: Handle pane-toolbar commands in CMainFrame
    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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2009 at 1:46am
Hi,
 
yes, it's right solution.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.