CXTPMenuBar - Getting a sub menu control & hide it |
Post Reply |
Author | |
tomay3000
Groupie Joined: 08 December 2010 Location: Algeria Status: Offline Points: 56 |
Post Options
Thanks(0)
Posted: 01 June 2011 at 4:41pm |
I have successfully hid a CXTPControl from a CXTPToolBar:
pToolBar->GetControls()->FindControl(ID_FILE_NEW)->SetVisible(FALSE); but when I try do the same action with a CXTPMenuBar an exception is thrown: pMenuBar->GetControls()->FindControl(ID_FILE_NEW)->SetVisible(FALSE); pMenuBar->GetControls() could not find ID_FILE_NEW control. any ideas ? help me please |
|
Product: Codejock ToolkitPro MFC v16.2.0
Platform: Microsoft Windows 8 Pro (64-bit) Language: Microsoft Visual C++ v6.0 (MFC) |
|
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 |