Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "TrackPopupMenu" in [All]

user32

.
Summary
.

public static extern int TrackPopupMenu(IntPtr hMenu, uint uFlags, int x, int y, int nReserved, IntPtr hWnd, ref RECT prcRect);

.

    Shared Function TrackPopupMenuEx( _

.
Documentation
[TrackPopupMenuEx] on MSDN
.
Summary
.

static extern bool TrackPopupMenuEx(IntPtr hmenu, uint fuFlags, int x, int y,

.

    Shared Function TrackPopupMenuEx( _

.
Documentation
[TrackPopupMenuEx] on MSDN

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);

.
Documentation
[TrackPopupMenuEx] on MSDN

 
Access PInvoke.net directly from VS: