IPXV_Inst::GetDlgParentWindow Method

From PDF XChange PDF SDK
Jump to: navigation, search


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