I have a CWnd
derived class that has a WM_CONTEXTMENU
handler (OnContextMenu
), which has my default context menu. This class is being used at several places in my application.
Some of the places where it's being used also handle the WM_CONTEXTMENU
at the parent level (the window parent). They basically override the default context menu.
When I am inside the CWnd
derived class, I basically want to know if someone else (a window parent) handled the context menu.
for example:
void MyDerivedWnd::OnContextMenu( CWnd* in_pWnd, CPoint in_point )
{
LRESULT res = __super::Default();
// Now, how to I know of something happened inside __super::Default();??
// Show my default menu
// ...
}
It is possible via the Win32/MFC framework?