Click to return to the Reusing Browser Technology home page    
IHTMLEmbedElement::get_sr...     IHTMLEmbedElement::get_wi...     IHTMLEmbedElement Interfa...    
Web Workshop  |  Reusing Browser Technology

IHTMLEmbedElement::get_units Method


Retrieves the current units, which can be either pixels or ems, used to caculate the height and width.

Syntax

HRESULT get_units(
    BSTR *p
);

Parameters

p
Address of a string (BSTR) variable that contains the unit type. For details, see the units property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLEmbedElement::put_units Method


Sets the units, which can be either pixels or ems, that the height and width are calculated in.

Syntax

HRESULT put_units(
    BSTR v
);

Parameters

v
String (BSTR) value that contains the units to set. For details, see the units property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.