comrade64
December 22nd, 2002, 10:54 AM
Is there any way to programmatically close an opened pop-up menu that was invoked with an API like TrackPopupMenu?
| // JP opened flex table
Click to See Complete Forum and Search --> : Close pop-up menu comrade64 December 22nd, 2002, 10:54 AM Is there any way to programmatically close an opened pop-up menu that was invoked with an API like TrackPopupMenu? Bengi December 22nd, 2002, 11:59 AM hi comrade, mabye this will be any assistant: HMENU hMenu = LoadMenu (hInst, MAKEINTRESOURCE (IDR_MENU1)); HMENU hPopupMenu = GetSubMenu (hMenu, 0); SetMenuDefaultItem (hPopupMenu, -1, TRUE); GetCursorPos (&pt); SetForegroundWindow (hWnd); TrackPopupMenu (hPopupMenu, TPM_LEFTALIGN, pt.x, pt.y, 0, hWnd, NULL); SetForegroundWindow (hWnd); DestroyMenu (hPopupMenu); DestroyMenu (hMenu); if its not, please give example in what u mean exactly. codeguru.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved. |