ITrackShellMenu::Popup method

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

Syntax


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

Parameters

hwnd [in]

Type: HWND

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

ppt [in]

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 [in]

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 [in]

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]

Header

Shdeprecated.h

DLL

Shell32.dll

 

 

Show: