Click to return to the Reusing Browser Technology home page    
IHTMLRuleStyle::get_cssTe...     IHTMLRuleStyle::get_displ...     IHTMLRuleStyle Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLRuleStyle::get_cursor Method


Retrieves the value of the cursor attribute for the element.

Syntax

HRESULT get_cursor(
    BSTR *p 
);

Parameters

p
Address of a variable that receives the value of the attribute. For details, see the cursor attribute. This variable receives NULL if the attribute is not set.

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

IHTMLRuleStyle::put_cursor Method


Sets the value of the cursor attribute for the element. The attribute determines the type of cursor to display when the mouse is over the element.

Syntax

HRESULT put_cursor( 
    BSTR v 
);

Parameters

v
String that specifies the cursor type. It can be one of these values:
auto Browser determines the cursor to display based on the current context.
crosshair A simple crosshair.
default The platform-dependent default cursor (typically an arrow).
hand A hand.
move A four-directional arrow typically used to indicate an object to be moved.
*-resize An arrow cursor typically used to indicate the edge of an object to be moved during a resize operation.
text Typically an I-bar used to indicate text that can be edited.
wait Typically a watch or hourglass used to indicate that the program is busy and the user should wait.

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.