IPXV_Inst::GetDlgParentWindow Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(3 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
== Syntax ==
 
== Syntax ==
 
<pre class="brush:cpp;gutter:false">HRESULT GetDlgParentWindow([in]          IPXC_Document*  pRDoc,
 
<pre class="brush:cpp;gutter:false">HRESULT GetDlgParentWindow([in]          IPXC_Document*  pRDoc,
                           [out, retval]  HANDLE_T*      pWindow);</pre>
+
                           [out, retval]  HANDLE_T*      nWindow);</pre>
  
 
== Parameters ==
 
== Parameters ==
 
;pRDoc
 
;pRDoc
:[in]  The optional pointer to [[PXV:IPXC_Document|IPXC_Document]]. If you have a document - pass it here, and the function returns the handle of optimal window to be the parent of your dialog. You may pass the NULL value to get window handle of active document view or active main frame at least.
+
:[in]  The optional pointer to [[PXV:IPXC_Document|IPXC_Document]]. If you have a document - pass it here, and the function will return the handle of optimal window to be the parent of your dialog. You may pass the NULL value to get window handle of active document view or active main frame at least.
;pWindow
+
;nWindow
 
:[out, retval]  Returns the handle to the optimal parent window.
 
:[out, retval]  Returns the handle to the optimal parent window.
  

Latest revision as of 03:56, 15 June 2015


Returns the handle of window corresponding to the specified document object and that can be used as parent for new dialog displaying.

Syntax

HRESULT GetDlgParentWindow([in]           IPXC_Document*  pRDoc,
                           [out, retval]  HANDLE_T*       nWindow);

Parameters

pRDoc
[in] The optional pointer to IPXC_Document. If you have a document - pass it here, and the function will return the handle of optimal window to be the parent of your dialog. You may pass the NULL value to get window handle of active document view or active main frame at least.
nWindow
[out, retval] Returns the handle to the optimal parent window.

Return Value

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

See Also

IPXV_Inst