Desktop Functions: Smart Device Functions:
|
Search Results for "TrackPopupMenu" in [All]coredll
static extern uint TrackPopupMenuEx(IntPtr hMenu, uint uFlags, int x, int y, IntPtr hWnd, IntPtr tpmParams); Use TrackPopupMenuEx with the TPM_RETURNCMD flag to return the ID of the selected Menu Item.
uint menuItemID = TrackPopupMenuEx(hMenu, TPM_BOTTOMALIGN | TPM_RETURNCMD, Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height, eventSink.Hwnd, IntPtr.Zero); user32 |