IUIX_CmdHandler::OnCreateNewCtl Method
From PDF XChange PDF SDK
(Automatic page editing by robot) |
|||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IUIX_CmdHandler::OnCreateNewCtl Method}} | {{#customTitle:IUIX_CmdHandler::OnCreateNewCtl Method}} | ||
+ | {{#parentPage:PXV:IUIX_CmdHandler#Methods|OnCreateNewCtl|method}} | ||
+ | {{ToReview}} | ||
− | + | Creates new [[PXV:IUIX_Obj|object]] based on the given [[PXV:IUIX_Cmd|command]]. | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT OnCreateNewCtl([in] IUIX_Cmd* pCmd, [in] IUIX_CmdBar* pParent, [out] IUIX_Obj** | + | <pre class="brush:cpp;gutter:false">HRESULT OnCreateNewCtl([in] IUIX_Cmd* pCmd, |
+ | [in] IUIX_CmdBar* pParent, | ||
+ | [out] IUIX_Obj** pCtl);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;pCmd |
− | :[in] Pointer to [[PXV:IUIX_Cmd|IUIX_Cmd]]. | + | :[in] Pointer to [[PXV:IUIX_Cmd|IUIX_Cmd]] containing the sourse command by which the object should be created. |
− | ; | + | ;pParent |
− | :[in] Pointer to [[PXV:IUIX_CmdBar|IUIX_CmdBar]]. | + | :[in] Pointer to [[PXV:IUIX_CmdBar|IUIX_CmdBar]] containing the parent command bar. |
− | ; | + | ;pCtl |
− | :[out] Pointer to [[PXV:IUIX_Obj|IUIX_Obj]]. | + | :[out] Pointer to [[PXV:IUIX_Obj|IUIX_Obj]] containing the resulting object. |
== Return Value == | == Return Value == | ||
Line 19: | Line 24: | ||
== See Also == | == See Also == | ||
− | + | [[PXV:IUIX_CmdHandler|IUIX_CmdHandler]] |
Latest revision as of 01:11, 4 April 2016
Creates new object based on the given command.
Syntax
HRESULT OnCreateNewCtl([in] IUIX_Cmd* pCmd, [in] IUIX_CmdBar* pParent, [out] IUIX_Obj** pCtl);
Parameters
- pCmd
- [in] Pointer to IUIX_Cmd containing the sourse command by which the object should be created.
- pParent
- [in] Pointer to IUIX_CmdBar containing the parent command bar.
- pCtl
- [out] Pointer to IUIX_Obj containing the resulting object.
Return Value
Returns S_OK if operation was successful or error code in other cases.