Click to return to the Reusing Browser Technology home page    
IHTMLStyleElement::get_di...     IHTMLStyleElement::get_on...     IHTMLStyleElement Interfa...    
Web Workshop  |  Reusing Browser Technology

IHTMLStyleElement::get_media Method


Retrieves the string that indicates which media this STYLE element applies to.

Syntax

HRESULT get_media(
    BSTR *p 
);

Parameters

p
Address of a string that receives the media type.

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

IHTMLStyleElement::put_media Method


Sets a pointer to the event handler function that indicates which media this STYLE element applies to.

Syntax

HRESULT put_media(
    BSTR v 
);

Parameters

v
String value that specifies the type of media for this STYLE element.

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.