IHTMLControlElement

IHTMLControlElement


This interface is a base interface for control type elements such as IHTMLImgElement.

IHTMLControlElement Methods
put_tabIndex   get_tabIndex   focus  
put_accessKey   get_accessKey   put_onblur  
get_onblur   put_onfocus   get_onfocus  
put_onresize   get_onresize   blur  
addFilter   removeFilter   get_clientWidth  
get_clientHeight   get_clientTop   get_clientLeft  

IHTMLControlElement::put_tabIndex

HRESULT put_tabIndex(
    short v
);

Sets the tab index for the object. The tab index determines the tab selection order.

v
Short integer value specifying the tab index.

Tab selection order is determined by the value of the tabIndex property as follows:

See also get_tabIndex

IHTMLControlElement::get_tabIndex

HRESULT get_tabIndex(
    short *p
);

Retrieves the tab index for the object.

p
Address of a short integer variable that receives the tab index.

Tab selection order is determined by the value of the tabIndex property as follows:

See also put_tabIndex

IHTMLControlElement::focus

HRESULT focus(void);

Causes a control to receive the focus and executes the code specified by onfocus.

See also blur

IHTMLControlElement::put_accessKey

HRESULT put_accessKey(
    BSTR v
);

Sets an accelerator for the element.

v
String specifying the accelerator.

See also get_accessKey

IHTMLControlElement::get_accessKey

HRESULT get_accessKey(
    BSTR *p
);

Retrieves an accelerator for the element.

p
Address of a string variable that receives the accelerator key.

See also put_accessKey

IHTMLControlElement::put_onblur

HRESULT put_onblur(
    VARIANT v
);

Sets the inline script associated with the onblur event on the control element.

v
VARIANT structure containing the script to set.

See also get_onblur

IHTMLControlElement::get_onblur

HRESULT get_onblur(
    VARIANT *p
);

Retrieves the inline script associated with the onblur event on the control element.

p
Address of a VARIANT structure to store the script.

See also put_onblur

IHTMLControlElement::put_onfocus

HRESULT put_onfocus(
    VARIANT v
);

Sets the inline script associated with the onfocus event on the control element.

v
Variable of VARIANT type.

See also get_onfocus

IHTMLControlElement::get_onfocus

HRESULT get_onfocus(
    VARIANT *p
);

Retrieves the inline script associated with the onfocus event on the control element.

p
Address of a VARIANT structure to store the script.

See also put_onfocus

IHTMLControlElement::put_onresize

HRESULT put_onresize(
    VARIANT v
);

Sets the inline script associated with the onresize event on the control element.

v
VARIANT structure containing the script.

See also get_onresize

IHTMLControlElement::get_onresize

HRESULT get_onresize(
    VARIANT *p
);

Retrieves the inline script associated with the onresize event on the control element.

p
Address of a VARIANT structure to store the script.

See also put_onresize

IHTMLControlElement::blur

HRESULT blur(void);

Causes a control to lose focus and fires the onblur event.

See also focus

IHTMLControlElement::addFilter

HRESULT addFilter(
    IUnknown *pUnk
);

Adds the specified filter to the list of filters influencing this element.

pUnk
Address of the IUnknown interface of the filter to be added.

See also removeFilter

IHTMLControlElement::removeFilter

HRESULT removeFilter(
    IUnknown *pUnk
);

Removes the specified filter from the list of filters influencing this element.

pUnk
Address of a variable of IUnknown type.

See also addFilter

IHTMLControlElement::get_clientHeight

HRESULT get_clientHeight(
    long *p
);

Retrieves the height of the element, in pixels. This height does not take into account any margin, border, scroll bar, or padding that might have been applied to the element.

p
Address of a variable that receives the height of the element.

IHTMLControlElement::get_clientWidth

HRESULT get_clientWidth(
    long *p
);

Retrieves the width of the element, in pixels. This width does not take into account any margin, border, scroll bar, or padding that might have been applied to the element.

p
Address of a variable that receives the width of the element.

IHTMLControlElement::get_clientTop

HRESULT get_clientTop(
    long *p
);

Retrieves the top coordinates of the client area inside this element's borders.

p
Long integer value containing the coordinates for the top corner of the client area inside this element's borders.

IHTMLControlElement::get_clientLeft

HRESULT get_clientLeft(
    long *p
);

Retrieves the left coordinates of the client area inside this element's borders.

p
Long integer value containing the coordinates for the left corner of the client area inside this element's borders.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.