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 |
|
Seung Cheol Lee
|
Aug 24, 2009 - 2:07 AM
|
When I double-clicked at the space of toolbar, the user customize dialog was opened. I would like not to open the user customize dialog.
|
|
Technical Support
|
Aug 24, 2009 - 11:24 AM
|
Please override the CExtCustomizeSite::DoFormCustomization() virtual method:
virtual bool DoFormCustomization( bool bDelayShow = false )
{
CWinThread * pWT = ::AfxGetThread();
ASSERT_VALID( pWT );
if( pWT->m_msgCur.hwnd != NULL && pWT->m_msgCur.message == WM_LBUTTONDBLCLK )
{
CWnd * pWnd = CWnd::FromHandlePermanent( pWT->m_msgCur.hwnd );
if( pWnd != NULL )
{
ASSERT_VALID( pWnd );
CControlBar * pControlBar = DYNAMIC_DOWNCAST( CControlBar, pWnd );
if( pControlBar != NULL && pControlBar->IsDockBar() )
return false;
}
}
return CExtCustomizeSite::DoFormCustomization();
}
|
|