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 |
|
David Skok
|
Aug 16, 2007 - 10:07 AM
|
My application has several CExtCustomControlBars. If I pin one of them open and right click on the title bar (of the Controlbar) code gets stuck in an endless loop here:
CExtControlBar.cpp
void CExtControlBar::OnRButtonUp(UINT nFlags, CPoint point) ... ... ... CWnd * pWndChild = GetWindow( GW_CHILD ); if( pWndChild != NULL ) { HWND hWndOwn = m_hWnd; if( stat_QueryFocusChangingEnabled( this, pWndChild->m_hWnd ) ) { pWndChild->SetFocus(); CExtPopupMenuWnd::PassMsgLoop( true ); <***** NEVER RETURNS FROM HERE if( ! ::IsWindow( hWndOwn ) ) { delete pPopup; return; } m_bWindowActive = true; SendMessage( WM_NCPAINT ); } }
The default context Prof-UIS menu is not overridden anywhere. It displays if click on un-pinned ControlBar title. I do not see this problem in any of your samples.
Any idea what I might have done wrong?
Thanks
|
|
David Skok
|
Aug 16, 2007 - 11:42 AM
|
My apologies, I discovered the source of the problem was the return value of OnIdle( Count ) that I overrode in my application. This bug was in there for quite some time and I just discovered it now. It happens.
|
|