Contents Index Topic Contents | ||
Previous Topic: IHTMLImgElement::put_width Next Topic: IHTMLImgElement::put_height |
IHTMLImgElement::get_width
HRESULT get_width( long *p );Retrieves the calculated width of the element, in pixels.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the width.
This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.
See also put_width
IHTMLImgElement::put_width
HRESULT put_width( long v );Sets the calculated width of the element, in pixels.
- Returns S_OK if successful, or an error value otherwise.
- v
- Value specifying the width.
This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.
See also get_width
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.