IPXV_Inst::ShowMsgBoxEx Method

From PDF XChange PDF SDK
Jump to: navigation, search
(Automatic page editing by robot)
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXV_Inst::ShowMsgBoxEx Method}}
 
{{#customTitle:IPXV_Inst::ShowMsgBoxEx Method}}
{{#parentPage:PXV:IPXV_Inst|ShowMsgBoxEx Method|method}}
+
{{#parentPage:PXV:IPXV_Inst#Methods|ShowMsgBoxEx|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
The extended method to show the custom message box in main thread.
  
 
== Syntax ==
 
== Syntax ==
Line 16: Line 16:
 
== Parameters ==
 
== Parameters ==
 
;pConfig
 
;pConfig
:[in]  Pointer to [[PXV:UIX_MsgBoxConfig|UIX_MsgBoxConfig]].
+
:[in]  Pointer to [[PXV:UIX_MsgBoxConfig|UIX_MsgBoxConfig]] structure.
 
;pOptionState
 
;pOptionState
:[out]  Pointer to LONG.
+
:[out]  Returns actual state of check-box on the message dialog.
 
;pSelectedRadioID
 
;pSelectedRadioID
:[out]  Pointer to LONG.
+
:[out]  Returns ID of selected radio-box on the message dialog.
 
;ppEditText
 
;ppEditText
:[out]  Pointer to BSTR.
+
:[out]  Returns the text, entered by user in edit-box on the message dialog.
 
;pRes
 
;pRes
:[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 ==
 
Returns S_OK if operation was successful or error code in other cases.
 
Returns S_OK if operation was successful or error code in other cases.
 +
 +
== Sample ==
 +
<pre class="brush:cpp">//C++
 +
HRESULT ShowWarningMsgBox()
 +
{
 +
UIX_MsgBoxConfig cfg = { 0 };
 +
cfg.nSize = sizeof(UIX_MsgBoxConfig);
 +
cfg.nStyle = UIX_MsgBox_IconWarning | UIX_MsgBox_OK | UIX_MsgBox_AppModal;
 +
cfg.pTitle = L"Warning Title";
 +
cfg.pText = L"Warning Text";
 +
cfg.pPos = nullptr;
 +
cfg.hWndParent = (SIZE_T)::GetFocus();
 +
return m_pInst->ShowMsgBoxEx(&cfg, nullptr, nullptr, nullptr, nullptr);
 +
}
 +
</pre>
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IPXV_Inst|IPXV_Inst]].
+
[[PXV:IPXV_Inst|IPXV_Inst]], [[PXV:IUIX_Inst_ShowMsgBoxEx|IUIX_Inst::ShowMsgBoxEx]], [[PXV:IPXV_Inst_ShowMsgBox|IPXV_Inst::ShowMsgBox]]

Latest revision as of 01:51, 20 October 2018


The extended method to show the custom message box in main thread.

Syntax

HRESULT ShowMsgBoxEx([in]                               UIX_MsgBoxConfig*  pConfig,
                     [out]                              LONG*              pOptionState,
                     [out]                              LONG*              pSelectedRadioID,
                     [out]                              BSTR*              ppEditText,
                     [out, retval, defaultvalue(NULL)]  LONG_PTR*          pRes);

Parameters

pConfig
[in] Pointer to UIX_MsgBoxConfig structure.
pOptionState
[out] Returns actual state of check-box on the message dialog.
pSelectedRadioID
[out] Returns ID of selected radio-box on the message dialog.
ppEditText
[out] Returns the text, entered by user in edit-box on the message dialog.
pRes
[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.

Sample

//C++
HRESULT ShowWarningMsgBox()
{
	UIX_MsgBoxConfig cfg = { 0 };
	cfg.nSize = sizeof(UIX_MsgBoxConfig);
	cfg.nStyle = UIX_MsgBox_IconWarning | UIX_MsgBox_OK | UIX_MsgBox_AppModal;
	cfg.pTitle = L"Warning Title";
	cfg.pText = L"Warning Text";
	cfg.pPos = nullptr;
	cfg.hWndParent = (SIZE_T)::GetFocus();
	return m_pInst->ShowMsgBoxEx(&cfg, nullptr, nullptr, nullptr, nullptr);
}

See Also

IPXV_Inst, IUIX_Inst::ShowMsgBoxEx, IPXV_Inst::ShowMsgBox