IUIX_CmdManager::ShowPopupMenu Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
m (Automatic page editing by robot) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IUIX_CmdManager::ShowPopupMenu Method}} | {{#customTitle:IUIX_CmdManager::ShowPopupMenu Method}} | ||
− | {{#parentPage:PXV:IUIX_CmdManager#Methods|ShowPopupMenu | + | {{#parentPage:PXV:IUIX_CmdManager#Methods|ShowPopupMenu|method}} |
− | + | ||
{{ToReview}} | {{ToReview}} | ||
− | + | Shows popup menu in given position. | |
== Syntax == | == Syntax == | ||
<pre class="brush:cpp;gutter:false">HRESULT ShowPopupMenu([in] IUIX_Obj* pOwner, | <pre class="brush:cpp;gutter:false">HRESULT ShowPopupMenu([in] IUIX_Obj* pOwner, | ||
[in] IUIX_CmdMenu* pMenu, | [in] IUIX_CmdMenu* pMenu, | ||
− | [in] RECT* | + | [in] RECT* stPos, |
[in, defaultvalue(0)] VARIANT_BOOL bReturnCmd, | [in, defaultvalue(0)] VARIANT_BOOL bReturnCmd, | ||
[in, defaultvalue(0)] LONG nPopupFlags, | [in, defaultvalue(0)] LONG nPopupFlags, | ||
Line 18: | Line 17: | ||
== Parameters == | == Parameters == | ||
;pOwner | ;pOwner | ||
− | :[in] Pointer to [[PXV:IUIX_Obj|IUIX_Obj]]. | + | :[in] Pointer to [[PXV:IUIX_Obj|IUIX_Obj]] containing the menu's owner object. |
;pMenu | ;pMenu | ||
− | :[in] Pointer to [[PXV:IUIX_CmdMenu|IUIX_CmdMenu]]. | + | :[in] Pointer to [[PXV:IUIX_CmdMenu|IUIX_CmdMenu]] containing the popup menu that needs to be shown. |
− | ; | + | ;stPos |
− | :[in] Pointer to RECT. | + | :[in] Pointer to RECT containing the popup menu position. |
;bReturnCmd | ;bReturnCmd | ||
− | :[in, defaultvalue(0)] Value of VARIANT_BOOL. | + | :[in, defaultvalue(0)] Value of VARIANT_BOOL containing whether the result will be returned. |
;nPopupFlags | ;nPopupFlags | ||
− | :[in, defaultvalue(0)] Value of LONG. | + | :[in, defaultvalue(0)] Value of LONG containing the [[PXV:UIX_ShowPopupFlags|popup flags]]. |
;pResCmdID | ;pResCmdID | ||
− | :[out, retval] Pointer to LONG. | + | :[out, retval] Pointer to LONG containing the resulting command ID (that was clicked in the popup). |
== Return Value == | == Return Value == | ||
Line 34: | Line 33: | ||
== See Also == | == See Also == | ||
− | [[PXV:IUIX_CmdManager|IUIX_CmdManager]] | + | [[PXV:IUIX_CmdManager|IUIX_CmdManager]] |
Latest revision as of 23:45, 19 May 2018
Shows popup menu in given position.
Syntax
HRESULT ShowPopupMenu([in] IUIX_Obj* pOwner, [in] IUIX_CmdMenu* pMenu, [in] RECT* stPos, [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.
- stPos
- [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.