Click to return to the Reusing Browser Technology home page    
IHTMLEventObj::get_altKey...     IHTMLEventObj::get_cancel...     IHTMLEventObj Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLEventObj::get_button Method


Retrieves which mouse button, if any, is pressed.

Syntax

HRESULT get_button(
    long *p
);

Parameters

p
Address of a long integer variable that receives the button value. For details, see the button property.

Return Value

Returns S_OK if successful, or an error code otherwise.



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.