This topic has not yet been rated - Rate this topic

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_CLIENTTOHOSTWINDOW

The 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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ