IUIX_CmdManager::ShowPopupMenu Method

From PDF XChange PDF SDK
Revision as of 06:20, 4 April 2016 by Palamar (Talk | contribs)

Jump to: navigation, search


Shows popup menu in given position.

Syntax

HRESULT ShowPopupMenu([in]                   IUIX_Obj*      pOwner,
                      [in]                   IUIX_CmdMenu*  pMenu,
                      [in]                   RECT*          pPos,
                      [in, defaultvalue(0)]  VARIANT_BOOL   bReturnCmd,
                      [in, defaultvalue(0)]  LONG           nPopupFlags,
                      [out, retval]          LONG*          pResCmdID);

Parameters

pOwner
[in] Pointer to IUIX_Obj containing the menu's owner object.
pMenu
[in] Pointer to IUIX_CmdMenu containing the popup menu that needs to be shown.
pPos
[in] Pointer to RECT containing the popup menu position.
bReturnCmd
[in, defaultvalue(0)] Value of VARIANT_BOOL containing whether the result will be returned.
nPopupFlags
[in, defaultvalue(0)] Value of LONG containing the popup flags.
pResCmdID
[out, retval] Pointer to LONG containing the resulting command ID (that was clicked in the popup).

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IUIX_CmdManager