Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Hide "x" in Command Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hide "x" in Command Bar

 Post Reply Post Reply
Author
Message
rokky05 View Drop Down
Groupie
Groupie


Joined: 04 February 2008
Location: Ukraine
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote rokky05 Quote  Post ReplyReply Direct Link To This Post Topic: Hide "x" in Command Bar
    Posted: 06 May 2008 at 5:56am
Hi, when user moves Command Bar on window and places it for example on the middle of window Command Bar is represented like separate window with possibility to close Command Bar ("x")  and when click on left button on mouse display menu where is possibility to hide Command Bar, possibly hide this possibility?
Back to Top
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 6:10am
are you referring to the toolbars?

if you are referring to the toolbars then

    Dim Toolbar As CommandBar
    Set Toolbar = CommandBars.Add("Standard", xtpBarTop)
    Toolbar.Closeable = False


i hope this helps


edit:
im sorry i didnt realize this is in the mfc section. my bad. :)
Back to Top
rokky05 View Drop Down
Groupie
Groupie


Joined: 04 February 2008
Location: Ukraine
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote rokky05 Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 6:42am

If I do this:

pToolBarCombo->m_bCloseable = FALSE;

VS display error:
cannot access protected member declared in class 'CXTPCommandBar'
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 10:16am
you need pToolBarCombo->SetCloseable(FALSE);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.