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.
Subject |
Author |
Date |
|
Rafael Heitor Correia de Melo
|
Sep 24, 2004 - 2:52 PM
|
Is there any way that I can set minimize and maximize buttons on a CExtControlBar. If someone could help me with that I would be appreciated.
Thanks in advance, Rafael Melo
|
|
Technical Support
|
Sep 27, 2004 - 10:53 AM
|
Although we believe that the use of minimize buttons is obsolete, they are supported by Prof-UIS. You should use your own class derived from CExtControlBar and implement the following virtual method:
void CYourCustomControlBar::OnNcAreaButtonsReinitialize()
{
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) );
}
|
|