IUIX_Inst::CreateButton Method

From Tracker Software PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 1: Line 1:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_Inst::CreateButton Method}}
 
{{#customTitle:IUIX_Inst::CreateButton Method}}
{{#parentPage:PXV:IUIX_Inst|method}}
+
{{#parentPage:PXV:IUIX_Inst|CreateButton Method|method}}
 
{{ToWrite}}
 
{{ToWrite}}
 
{{ToReview}}
 
{{ToReview}}
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT CreateButton([in] IUIX_Obj* pParent, [in] RECT* pRect, [in] BSTR pID, [in] BSTR pText, [in, defaultvalue(0)] LONGLONG nStyle, [in, optional] IUnknown* pImageOrIcon, [in, optional] IUnknown* pCustomImpl, [out, retval] IUIX_Button** ppButton);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT CreateButton([in]                     IUIX_Obj*     pParent,
 +
                    [in]                     RECT*         pRect,
 +
                    [in]                     BSTR           pID,
 +
                    [in]                     BSTR           pText,
 +
                    [in, defaultvalue(0)]     LONGLONG       nStyle,
 +
                    [in, defaultvalue(NULL)] IUnknown*     pImageOrIcon,
 +
                    [in, defaultvalue(NULL)] IUnknown*     pCustomImpl,
 +
                    [out, retval]             IUIX_Button** ppButton);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''pParent''
+
;pParent
 
:[in]  Pointer to [[PXV:IUIX_Obj|IUIX_Obj]].
 
:[in]  Pointer to [[PXV:IUIX_Obj|IUIX_Obj]].
;''pRect''
+
;pRect
 
:[in]  Pointer to RECT.
 
:[in]  Pointer to RECT.
;''pID''
+
;pID
 
:[in]  Value of BSTR.
 
:[in]  Value of BSTR.
;''pText''
+
;pText
 
:[in]  Value of BSTR.
 
:[in]  Value of BSTR.
;''nStyle''
+
;nStyle
 
:[in, defaultvalue(0)]  Value of LONGLONG.
 
:[in, defaultvalue(0)]  Value of LONGLONG.
;''pImageOrIcon''
+
;pImageOrIcon
 
:[in, optional]  Pointer to IUnknown*.
 
:[in, optional]  Pointer to IUnknown*.
;''pCustomImpl''
+
;pCustomImpl
 
:[in, optional]  Pointer to IUnknown*.
 
:[in, optional]  Pointer to IUnknown*.
;''ppButton''
+
;ppButton
 
:[out, retval]  Pointer to [[PXV:IUIX_Button|IUIX_Button]].
 
:[out, retval]  Pointer to [[PXV:IUIX_Button|IUIX_Button]].
  

Revision as of 05:44, 23 April 2015


The method of interface of PDF-XChange Editor SDK.

Syntax

HRESULT CreateButton([in]                      IUIX_Obj*      pParent,
                     [in]                      RECT*          pRect,
                     [in]                      BSTR           pID,
                     [in]                      BSTR           pText,
                     [in, defaultvalue(0)]     LONGLONG       nStyle,
                     [in, defaultvalue(NULL)]  IUnknown*      pImageOrIcon,
                     [in, defaultvalue(NULL)]  IUnknown*      pCustomImpl,
                     [out, retval]             IUIX_Button**  ppButton);

Parameters

pParent
[in] Pointer to IUIX_Obj.
pRect
[in] Pointer to RECT.
pID
[in] Value of BSTR.
pText
[in] Value of BSTR.
nStyle
[in, defaultvalue(0)] Value of LONGLONG.
pImageOrIcon
[in, optional] Pointer to IUnknown*.
pCustomImpl
[in, optional] Pointer to IUnknown*.
ppButton
[out, retval] Pointer to IUIX_Button.

Return Value

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

See Also

See also IUIX_Inst.