Export (0) Print
Expand All

disabled property

[This documentation is preliminary and is subject to change.]

Sets or retrieves a value that indicates whether the user can interact with the object.

Syntax

HRESULT value = object.put_disabled(VARIANT_BOOL v);HRESULT value = object.get_disabled(VARIANT_BOOL* p);

Property values

Type: VARIANT_BOOL

VARIANT_FALSE (false)

Default. Element is not disabled.

VARIANT_TRUE (true)

Element is disabled.

Remarks

When an element is disabled, it appears dimmed and does not respond to user input. Disabled elements do not respond to mouse events, nor will they respond to the IHTMLElement3::contentEditable property.

If an element's IHTMLInputHiddenElement::disabled property is set to false but it is contained within a IHTMLInputHiddenElement::disabled element, it cannot override the IHTMLInputHiddenElement::disabled state of its container.

For link, style and styleSheet, the attribute sets or retrieves whether a style sheet is applied to the object.

Note  For OPTGROUP and OPTION, the functionality specified by the HTML 4.01 standard is not currently implemented. You can define your own functionality.

See also

IHTMLElement3::disabled

 

 

Build date: 6/6/2012

Community Additions

Show:
© 2014 Microsoft