Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » How to show gripper in menu bar even if they aren't moveable? Collapse All
Subject Author Date
Chris Douglass Apr 29, 2005 - 2:06 PM

I added the following code to make my menu bar static and immoveable.


/* m_wndMenuBar.EnableDocking(CBRS_ALIGN_TOP);


if( !CExtControlBar::FrameEnableDocking(this) )


return -1;*/


//DockControlBar(&m_wndMenuBar);


But, I’d the gripper to show up anyway since it gives the menu a more modern look.  How can I do this?

Chris Douglass Apr 29, 2005 - 3:16 PM

Sorry I was in a rush when I posted.  The code referenced in my post is commented out in my project thus my menu bar is static and can’t be moved.  This is my intention. 


However, I’d still like to know how to make the menu bar draw the gripper graphic when the menu is not moveable. 


Thanks.

Technical Support Apr 30, 2005 - 10:16 AM

To make the menu bar or a toolbar non-redockable, you should not call these two methods of the CFrameWnd class: EnableDocking() and DockControlBar(). You may have noted that the status bar is a such kind of non-redockable control bar. To remove gripper from any bar, just exclude the CBRS_GRIPPER style when calling bar’s Create() method. All Prof-UIS control bars but the status bar are created by invoking the CExtControlBar::Create() method with CBRS_GRIPPER listed in default parameters.