IWebBrowser2::Width Property
Sets or gets the width of the object.
Syntax
HRESULT IWebBrowser2::get_Width(long *pl);HRESULT IWebBrowser2::put_Width(long Width);
Parameters
- pl
- Pointer to a variable of type long that receives the width, in pixels.
- Width
- long that specifies the width, in pixels.
Return Value
Returns S_OK to indicate that the operation was successful.
Remarks
The WebBrowser object returns the dimensions of the control window; InternetExplorer returns the dimensions of the browser frame.
The values for this property change as the object is resized by the user or by code. The size of the object changes by setting this property.
See Also