|
|
|
|
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 |
|
tera t
|
Jul 22, 2008 - 2:33 AM
|
Hello. I want to make the following menu non-indication.

Thanks,
|
|
tera t
|
Jul 23, 2008 - 6:18 PM
|
Hello. >Do you want to remove this menu or just modify it? It wants not to be changed in MDI. Is it difficult?
|
|
Technical Support
|
Jul 25, 2008 - 5:31 AM
|
You should create and use a custom dynamic control bar class: // in .H file
class CYourDynamicControlBar : public CExtControlBar
{
public:
DECLARE_SERIAL( CYourDynamicControlBar );
virtual bool OnInitDbsMenu(
CExtPopupMenuWnd * pPopup,
HWND hWndTrack,
CObject * pHelperSrc,
LPARAM lParamHelper = 0
)
{
bool bRetVal = OnInitDbsMenu( pPopup, hWndTrack, pHelperSrc, lParamHelper );
INT nPosToRemove = pPopup->ItemFindPosForCmdID( ID_EXT_DYN_BAR_TABBED_DOCUMENT );
if( nPosToRemove >= 0 )
pPopup->ItemRemove( nPosToRemove );
nPosToRemove = pPopup->ItemFindPosForCmdID( ID_EXT_DYN_BAR_MDI_DOCUMENT );
if( nPosToRemove >= 0 )
pPopup->ItemRemove( nPosToRemove );
return bRetVal.
}
};
// in .CPP file
IMPLEMENT_SERIAL( CYourDynamicControlBar, CExtDynamicControlBar, VERSIONABLE_SCHEMA|1 ); You should also use RUNTIME_CLASS(CYourDynamicControlBar) in the pDesiredRTC parameter of the CExtDynamicBarSite::BarAlloc() method.
|
|
tera t
|
Jul 25, 2008 - 6:53 PM
|
|
|
Technical Support
|
Jul 23, 2008 - 10:56 AM
|
Do you want to remove this menu or just modify it?
|
|