次の方法で共有


IActiveScriptSiteWindow::GetWindow

Retrieves the handle to a window that can act as the owner of a pop-up window that the scripting engine must display.

Syntax

HRESULT GetWindow(  
    HWND *phwnd  // address of variable for window handle  
);  

Parameters

phwnd
[out] Address of a variable that receives the window handle.

Return Value

Returns S_OK if successful, or E_FAIL if an error occurred.

Remarks

This method is similar to the IOleWindow::GetWindow method.

See also

IActiveScriptSiteWindow