MP_POPUPFLAGS constants

Represent options available when displaying a pop-up menu.

Constant/value Description
MPPF_SETFOCUS
0x00000001
Give the pop-up menu the focus.
MPPF_INITIALSELECT
0x00000002
Select the first item in the pop-up menu.
MPPF_NOANIMATE
0x00000004
Do not use the default system animations, for example, fade-in, when displaying the menu.
MPPF_KEYBOARD
0x00000010
Activate the menu by a keyboard shortcut.
MPPF_REPOSITION
0x00000020
Display the bar in a different position, based on changes to the menu.
MPPF_FORCEZORDER
0x00000040
Reserved. Do not use.
MPPF_FINALSELECT
0x00000080
Select the last item in the menu.
MPPF_ALIGN_LEFT
0x02000000
Windows Vista or later: Align the pop-up menu to the left of the area specified in the prcExclude parameter of ITrackShellMenu::Popup or IMenuPopup::Popup. This is the default alignment.
MPPF_ALIGN_RIGHT
0x04000000
Windows Vista or later: Align the pop-up menu to the right of the area specified in the prcExclude parameter of ITrackShellMenu::Popup or IMenuPopup::Popup.
MPPF_TOP
0x20000000
Position the pop-up menu above the initial point specified in the ppt parameter of ITrackShellMenu::Popup or IMenuPopup::Popup.
MPPF_LEFT
0x40000000
Position the pop-up menu to the left of the initial point.
MPPF_RIGHT
0x60000000
Position the pop-up menu to the right of the initial point.
MPPF_BOTTOM
(int)0x80000000
Position the pop-up menu below the initial point.
MPPF_POS_MASK
(int)0xE0000000
The menu position mask.

Remarks

These constants are defined in the Shobjidl.h file beginning in Windows XP Service Pack 1 (SP1) and Windows Server 2003

Requirements

Requirement Value
Minimum supported client
Windows XP with SP1 [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Shobjidl.h
IDL
Shobjidl.idl

See also

IMenuPopup::Popup

ITrackShellMenu::Popup