|
|
|
|
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 |
|
jun liu
|
May 9, 2005 - 9:16 AM
|
I am moving my program to use the Prof_UIS. I try to use CExtDynamicControlBar because it is cool. My old code works but after the switch CWndAcc to CExtDynamicControlBar, the following code does work any more, the AfxMessageBox doesn’t popup. class CWndAcc: public CExtDynamicControlBar; void CWndAcc::OnRMouseDown(NMHDR *pNotifyStruct, LRESULT *result) { CMenu popmenu; popmenu.CreatePopupMenu(); popmenu.AppendMenu(MF_STRING,ID_ADD,"Add"); popmenu.AppendMenu(MF_STRING,ID_REMOVE,"Remove"); CPoint sp; GetCursorPos(&sp); popmenu.TrackPopupMenu(TPM_LEFTALIGN,sp.x-3,sp.y-3,this); popmenu.DestroyMenu(); } BOOL CWndAcc::OnCommand(WPARAM wParam, LPARAM lParam) { if (wParam==ID_ADD) { AfxMessageBox("ADD"); } return FALSE; }
|
|
jun liu
|
May 9, 2005 - 9:44 AM
|
I found the problem: CExtDynamicControlBar::WindowProc() Don’t have default handler for the WM_COMMAND. fixed.
|
|