Checking Toolbar Items |
Post Reply |
Author | |
VeRtEX
Newbie Joined: 12 June 2004 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 12 June 2004 at 8:03am |
Hi, How can i check items of an CXTPToolBar? Using the standard mfc toolbar it worked like this: CToolBarCtrl& ctrl = mToolBar.GetToolBarCtrl(); Cheers |
|
msamocha
Newbie Joined: 07 March 2004 Location: Israel Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Hi, I would also like to know how can we Add / Delete / Modify menus/submenus (similar to MFC's CMenu InsertMenu, DeleteMenu and ModifyMenu) Vertex, Did you try to use GetControl()to get a pointer to the control and then use some of the CXTPControl methods to do what you want? Edited by msamocha |
|
VeRtEX
Newbie Joined: 12 June 2004 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
how exactly? CXTPControl* button = mToolbar->GetControls()->FindControl(xtpControlButton, ID_TOOLBAR_WIREFRAME, true, true); do you know how i can do that? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
To check item you must use update hanler. see FAQ.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
VeRtEX
Newbie Joined: 12 June 2004 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
okay thank you for your help. i now got it working with: if (!control) if(control->GetID()==id) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Did you try to open FAQ? think no. sample: BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) END_MESSAGE_MAP() void CMainFrame::OnUpdateProperties(CCmdUI* pCmdUI) } |
|
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 |