IPXV_Inst::ShowMsgBoxWithOpt Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXV_Inst::ShowMsgBoxWithOpt Method}}
 
{{#customTitle:IPXV_Inst::ShowMsgBoxWithOpt Method}}
{{#parentPage:PXV:IPXV_Inst#Methods|ShowMsgBoxWithOpt Method|method}}
+
{{#parentPage:PXV:IPXV_Inst#Methods|ShowMsgBoxWithOpt|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
The extended method to show the message box with check-option in main thread.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT ShowMsgBoxWithOpt([in]                              BSTR      pText,
+
<pre class="brush:cpp;gutter:false">HRESULT ShowMsgBoxWithOpt([in]                              BSTR      sText,
                           [in]                              BSTR      pTitle,
+
                           [in]                              BSTR      sTitle,
                           [in]                              BSTR      pHeader,
+
                           [in]                              BSTR      sHeader,
                           [in]                              BSTR      pOptionText,
+
                           [in]                              BSTR      sOptionText,
                           [in, out]                          LONG*      pOptionState,
+
                           [in, out]                          LONG*      nOptionState,
 
                           [in, defaultvalue(0)]              HANDLE_T  hWndParent,
 
                           [in, defaultvalue(0)]              HANDLE_T  hWndParent,
 
                           [in, defaultvalue(0)]              LONG      nStyle,
 
                           [in, defaultvalue(0)]              LONG      nStyle,
                           [out, retval, defaultvalue(NULL)]  LONG_PTR*  pRes);</pre>
+
                           [out, retval, defaultvalue(NULL)]  LONG_PTR*  nRes);</pre>
  
 
== Parameters ==
 
== Parameters ==
;pText
+
;sText
:[in]  Value of BSTR.
+
:[in]  Text of message.
;pTitle
+
;sTitle
:[in]  Value of BSTR.
+
:[in]  The title for dialog box. If empty then default application's title will be used.
;pHeader
+
;sHeader
:[in]  Value of BSTR.
+
:[in]  The text of header of message.
;pOptionText
+
;sOptionText
:[in]  Value of BSTR.
+
:[in]  Specifies the text for check-box control on the dialog. Setting of any non-empty text will show the check-box control.
;pOptionState
+
;nOptionState
:[in, out]  Pointer to LONG.
+
:[in, out]  Sets/gets the state of check-box on the dialog.
 
;hWndParent
 
;hWndParent
:[in, defaultvalue(0)]  Value of HANDLE_T.
+
:[in, defaultvalue(0)]  The optional parameter that specifies the handle of parent window.
 
;nStyle
 
;nStyle
:[in, defaultvalue(0)]  Value of LONG.
+
:[in, defaultvalue(0)]  Specifies the style of message box. See [[PXV:UIX_MsgBoxStyleFlags|UIX_MsgBoxStyleFlags]].
;pRes
+
;nRes
:[out, retval, defaultvalue(NULL)]  Pointer to LONG_PTR.
+
:[out, retval, defaultvalue(NULL)]  Returns the user's choice identifier. For possible values see [[PXV:UIX_MsgBoxResult|UIX_MsgBoxResult]].
  
 
== Return Value ==
 
== Return Value ==
Line 40: Line 39:
  
 
== See Also ==
 
== See Also ==
[[PXV:IPXV_Inst|IPXV_Inst]].
+
[[PXV:IPXV_Inst|IPXV_Inst]]

Latest revision as of 02:57, 15 June 2015


The extended method to show the message box with check-option in main thread.

Syntax

HRESULT ShowMsgBoxWithOpt([in]                               BSTR       sText,
                          [in]                               BSTR       sTitle,
                          [in]                               BSTR       sHeader,
                          [in]                               BSTR       sOptionText,
                          [in, out]                          LONG*      nOptionState,
                          [in, defaultvalue(0)]              HANDLE_T   hWndParent,
                          [in, defaultvalue(0)]              LONG       nStyle,
                          [out, retval, defaultvalue(NULL)]  LONG_PTR*  nRes);

Parameters

sText
[in] Text of message.
sTitle
[in] The title for dialog box. If empty then default application's title will be used.
sHeader
[in] The text of header of message.
sOptionText
[in] Specifies the text for check-box control on the dialog. Setting of any non-empty text will show the check-box control.
nOptionState
[in, out] Sets/gets the state of check-box on the dialog.
hWndParent
[in, defaultvalue(0)] The optional parameter that specifies the handle of parent window.
nStyle
[in, defaultvalue(0)] Specifies the style of message box. See UIX_MsgBoxStyleFlags.
nRes
[out, retval, defaultvalue(NULL)] Returns the user's choice identifier. For possible values see UIX_MsgBoxResult.

Return Value

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

See Also

IPXV_Inst