Contents Index Topic Contents | ||
Previous Topic: IHTMLStyle::get_pixelTop Next Topic: IHTMLStyle::get_posHeight |
IHTMLStyle::get_pixelWidth
HRESULT get_pixelWidth( long *p );Retrieves the 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.
Unlike the width attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.
See also put_pixelWidth
IHTMLStyle::put_pixelWidth
HRESULT put_pixelWidth( long v );Sets the width of the element, in pixels.
- Returns S_OK if successful, or an error value otherwise.
- v
- Long integer value specifying the width. Setting this property changes the width without changing the units designator.
Unlike the width attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.
See also get_pixelWidth
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.