Print Page | Close Window

Handle pane-toolbar commands in CMainFrame

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=14953
Printed Date: 22 June 2025 at 3:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Handle pane-toolbar commands in CMainFrame
Posted By: znakeeye
Subject: Handle pane-toolbar commands in CMainFrame
Date 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/



Replies:
Posted By: Oleg
Date Posted: 13 August 2009 at 1:46am
Hi,
 
yes, it's right solution.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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