ITrackShellMenu::Popup method

Displays a modal pop-up menu at a specific location.

Syntax

HRESULT Popup(
  HWND          hwnd,
  POINTL        *ppt,
  RECTL         *prcExclude,
  MP_POPUPFLAGS dwFlags
);

Parameters

hwnd

Type: HWND

The handle of the parent window of the pop-up menu.

ppt

Type: POINTL*

A pointer to a POINTL structure that specifies an initial point in screen coordinates. The pop-up menu is displayed in relation to this point as determined by the position flags set in dwFlags.

prcExclude

Type: RECTL*

A pointer to a RECTL structure that specifies the rectangle to exclude when positioning the menu. The alignment of the menu in relation to this area is determined by the alignment flags set in dwFlags. This parameter can be set to NULL.

dwFlags

Type: MP_POPUPFLAGS

One or more of the MP_POPUPFLAGS constants that specify options involved in the display of the pop-up menu.

Return Value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shdeprecated.h
DLL Shell32.dll