![]() |
Checking Toolbar Items |
Post Reply
|
| Author | |
VeRtEX
Newbie
Joined: 12 June 2004 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Checking Toolbar ItemsPosted: 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)
Quote Reply
Posted: 15 June 2004 at 4:06am |
|
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)
Quote Reply
Posted: 15 June 2004 at 11:47am |
|
how exactly? CXTPControl* button = mToolbar->GetControls()->FindControl(xtpControlButton, ID_TOOLBAR_WIREFRAME, true, true); do you know how i can do that? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 June 2004 at 2:42am |
|
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)
Quote Reply
Posted: 18 June 2004 at 9:08am |
|
okay thank you for your help. i now got it working with: if (!control) if(control->GetID()==id) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 June 2004 at 1:42am |
|
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 |