IHTMLFrameElement2::width Property

Gets the width of the object.

Syntax

HRESULT IHTMLFrameElement2::get_width(VARIANT *p);

Parameters

  • p
    Pointer to a variable of type VARIANT of type VT_I4 or VT_BSTR that receives one of the values listed in Possible Values.

Possible Values

width Integer that specifies the width of the object in pixels.
percentage Not applicable to C++.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

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 in C++.

In Microsoft Internet Explorer 5 it is possible to set the IHTMLFrameElement2::width property, but doing so has no effect on the rendering of the frame.