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 General Discussion » How to make a controlbar like the work space in Visual Studio 6.0 with CExtControlBar Collapse All
Subject Author Date
Wu Yunpeng Nov 28, 2005 - 2:37 AM

As title,thanks.

Technical Support Nov 28, 2005 - 9:58 AM

The resizable control bar uses the Visual Studio .NET / 2005 layout and behavior by default. If you need control bars like in Visual Studio 6.0, create a CExtControlBar-derived class and implement the following internal virtual method:

void CExtControlBar::OnNcAreaButtonsReinitialize()
{
    ASSERT_VALID( this );
INT nCountOfNcButtons = NcButtons_GetCount();
    if( nCountOfNcButtons > 0 )
        return;
    NcButtons_Add( new CExtBarNcAreaButtonClose(this) );
#if (!defined __EXT_MFC_NO_TAB_CONTROLBARS)
    NcButtons_Add( new CExtBarNcAreaButtonAutoHide(this) );
#endif // (!defined __EXT_MFC_NO_TAB_CONTROLBARS)
    NcButtons_Add( new CExtBarNcAreaButtonExpand(this) );
    NcButtons_Add( new CExtBarNcAreaButtonMenu(this) );
}
This code adds the contract/expand buttons like in Visual Studio 6.0.