
This interface is a base interface for control type elements such as IHTMLImgElement.
IHTMLControlElement Methods
HRESULT put_tabIndex(
short v
);
Sets the tab index for the object. The tab index determines the tab selection order.
Tab selection order is determined by the value of the tabIndex property as follows:
See also get_tabIndex
HRESULT get_tabIndex(
short *p
);
Retrieves the tab index for the object.
Tab selection order is determined by the value of the tabIndex property as follows:
See also put_tabIndex
HRESULT focus(void);
Causes a control to receive the focus and executes the code specified by onfocus.
See also blur
HRESULT put_accessKey(
BSTR v
);
Sets an accelerator for the element.
See also get_accessKey
HRESULT get_accessKey(
BSTR *p
);
Retrieves an accelerator for the element.
See also put_accessKey
HRESULT put_onblur(
VARIANT v
);
Sets the inline script associated with the onblur event on the control element.
See also get_onblur
HRESULT get_onblur(
VARIANT *p
);
Retrieves the inline script associated with the onblur event on the control element.
See also put_onblur
HRESULT put_onfocus(
VARIANT v
);
Sets the inline script associated with the onfocus event on the control element.
See also get_onfocus
HRESULT get_onfocus(
VARIANT *p
);
Retrieves the inline script associated with the onfocus event on the control element.
See also put_onfocus
HRESULT put_onresize(
VARIANT v
);
Sets the inline script associated with the onresize event on the control element.
See also get_onresize
HRESULT get_onresize(
VARIANT *p
);
Retrieves the inline script associated with the onresize event on the control element.
See also put_onresize
HRESULT blur(void);
Causes a control to lose focus and fires the onblur event.
See also focus
HRESULT addFilter(
IUnknown *pUnk
);
Adds the specified filter to the list of filters influencing this element.
See also removeFilter
HRESULT removeFilter(
IUnknown *pUnk
);
Removes the specified filter from the list of filters influencing this element.
See also addFilter
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.
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.
HRESULT get_clientTop(
long *p
);
Retrieves the top coordinates of the client area inside this element's borders.
HRESULT get_clientLeft(
long *p
);
Retrieves the left coordinates of the client area inside this element's borders.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.