DWebBrowserEvents2::ClientToHostWindow Event
Fires to request that the client window size is converted to the host window size.
Syntax
void ClientToHostWindow( long *CX, long *CY );
Parameters
- CX
- [in, out] A pointer to a long integer that receives and specifies the width of the client window.
- CY
- [in, out] A pointer to a long integer that receives and specifies the height of the client window.
Return Value
No return value.
Event DISPID
DISPID_CLIENTTOHOSTWINDOWThe DISPID for this event is defined in exdispid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.
Remarks
The ClientToHostWindow event enables the host application to adjust the size of the WebBrowser control window that allows for user interface items such as a toolbar, menu bar, or address bar.
This event is fired when a new window is opened through scripting, using the open method.
This event is available only to an application that is hosting the WebBrowser control installed by Microsoft Internet Explorer 5.5 and later.