直接调用呀! 譬如: BOOL TrackPopupMenu( HMENU hMenu, // handle of shortcut menu UINT uFlags, // screen-position and mouse-button flags int x, // horizontal position, in screen coordinates int y, // vertical position, in screen coordinates int nReserved, // reserved, must be zero HWND hWnd, // handle of owner window CONST RECT *prcRect // points to RECT that specifies no-dismissal area );
譬如:
BOOL TrackPopupMenu( HMENU hMenu, // handle of shortcut menu
UINT uFlags, // screen-position and mouse-button flags
int x, // horizontal position, in screen coordinates
int y, // vertical position, in screen coordinates
int nReserved, // reserved, must be zero
HWND hWnd, // handle of owner window
CONST RECT *prcRect // points to RECT that specifies no-dismissal area
);