VXPLib Documentation: COM
|
IVXPQuickHTML::GetControlAttr
-
Returns an attribute value specified in a tag <CONTROL>.
-
HRESULT GetControlAttr(long ID, BSTR attrName, VXPTagAttribute attrType = taText, VARIANT * Value);
|
Parameters
-
ID [in] - ID of the tag as specified in QHTML
attrName [in] - Name of the attribute. This function is not case-sensitive to the attribute name, and it ignores spaces
attrType [in, defaultvalue(taText)] - Type to which the return value must be converted (see remarks)
Value [out, retval] - Pointer to a VARIANT variable to return value of the attribute
Remarks-
The function searches for a tag with the specified ID, and then an attribute with name attrName defined within the tag.
If the tag and attribute are found the function returns value of the attribute converted to a type requested by parameter attrType.
For description of all supported types of conversion see function GetBodyAttr
The function returns values of both standard and custom attributes. When the attribute is not found or not specified in the tag
the function returns an empty value.
See Also
- IVXPQuickHTML Overview
| GetControlAttrIdx
| GetBodyAttr
| GetControlPos
| GetControlsInfo
| OnControlGetSize
| <CONTROL>
|
This document was last updated on 19/05/2003
Copyright © 2003 Tooltips.NET
|