Question : close a popup menu

hi,
how do I close a popup menu(programatically) created by TrackPopupMenu ?

Yoav.

Answer : close a popup menu

Send message WM_CANCELMODE to the window that created popup menu.

CWnd::SendMessage(WM_CANCELMODE, NULL, NULL);

::SendMessage(hWND, WM_CANCELMODE, NULL, NULL);

Random Solutions  
 
programming4us programming4us