Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPMenuBar - Getting a sub menu control & hide it
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPMenuBar - Getting a sub menu control & hide it

 Post Reply Post Reply
Author
Message
tomay3000 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 December 2010
Location: Algeria
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote tomay3000 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPMenuBar - Getting a sub menu control & hide it
    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)
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.171 seconds.