IUIX_Inst::ShowMsgBox Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT ShowMsgBox([in]                              BSTR      sText,
+
<pre class="brush:cpp;gutter:false">HRESULT ShowMsgBox([in]                              BSTR      Text,
                   [in]                              BSTR      sTitle,
+
                   [in]                              BSTR      Title,
                   [in]                              BSTR      sHeader,
+
                   [in]                              BSTR      Header,
                   [in, defaultvalue(0)]              HANDLE_T  nWndParent,
+
                   [in, defaultvalue(0)]              HANDLE_T  hWndParent,
                   [in, defaultvalue(0)]              LONG      nStyle,
+
                   [in, defaultvalue(0)]              LONG      Style,
                   [out, retval, defaultvalue(NULL)]  LONG_PTR*  nRes);</pre>
+
                   [out, retval, defaultvalue(NULL)]  LONG_PTR*  Res);</pre>
  
 
== Parameters ==
 
== Parameters ==
;sText
+
;Text
 
:[in]  specifies message box text.
 
:[in]  specifies message box text.
;sTitle
+
;Title
 
:[in]  specifies message box window title.
 
:[in]  specifies message box window title.
;sHeader
+
;Header
 
:[in]  specifies header, that is displayed above the main text of message box.
 
:[in]  specifies header, that is displayed above the main text of message box.
;nWndParent
+
;hWndParent
 
:[in, defaultvalue(0)]  <code>HANDLE_T</code> value of parent window.
 
:[in, defaultvalue(0)]  <code>HANDLE_T</code> value of parent window.
;nStyle
+
;Style
 
:[in, defaultvalue(0)]  style flags of message box. See [[PXV:UIX_MsgBoxStyleFlags|UIX_MsgBoxStyleFlags]] enumeration for full list of message box style flags.
 
:[in, defaultvalue(0)]  style flags of message box. See [[PXV:UIX_MsgBoxStyleFlags|UIX_MsgBoxStyleFlags]] enumeration for full list of message box style flags.
;nRes
+
;Res
 
:[out, retval, defaultvalue(NULL)]  result value. See [[PXV:UIX_MsgBoxResult|UIX_MsgBoxResult]] enumeration for full list of possible message box results.
 
:[out, retval, defaultvalue(NULL)]  result value. See [[PXV:UIX_MsgBoxResult|UIX_MsgBoxResult]] enumeration for full list of possible message box results.
  

Revision as of 06:51, 12 June 2015


Displays simple message box with "Ok" button.

Syntax

HRESULT ShowMsgBox([in]                               BSTR       Text,
                   [in]                               BSTR       Title,
                   [in]                               BSTR       Header,
                   [in, defaultvalue(0)]              HANDLE_T   hWndParent,
                   [in, defaultvalue(0)]              LONG       Style,
                   [out, retval, defaultvalue(NULL)]  LONG_PTR*  Res);

Parameters

Text
[in] specifies message box text.
Title
[in] specifies message box window title.
Header
[in] specifies header, that is displayed above the main text of message box.
hWndParent
[in, defaultvalue(0)] HANDLE_T value of parent window.
Style
[in, defaultvalue(0)] style flags of message box. See UIX_MsgBoxStyleFlags enumeration for full list of message box style flags.
Res
[out, retval, defaultvalue(NULL)] result value. See UIX_MsgBoxResult enumeration for full list of possible message box results.

Return Value

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

See Also

IUIX_Inst