VXPLib Documentation: COM

IVXPQuickHTML::GetControlPos

Returns position of a control with specified ID relative to coordinate {0, 0}.
HRESULT GetControlPos(long ID, short * X, short * Y, short * W, short * H, VARIANT_BOOL * bFound);
Parameters
ID [in] - ID of the tag as specified in QHTML
X [in, out] - Pointer to X-coordinate of the control inside the document
Y [in, out] - Pointer to Y-coordinate of the control inside the document
W [in, out] - Pointer to the width of the control
H [in, out] - Pointer to the height of the control
bFound [out, retval] - Return value: True, if the tag with specified ID was found, or False otherwise
Remarks
The function searches for a tag <CONTROL> with the specified ID, and if the tag is found returns position and size of the control.
See Also
IVXPQuickHTML Overview | GetControlAttr | OnControlGetSize | GetControlsInfo | <CONTROL>
This document was last updated on 19/05/2003
Copyright © 2003 Tooltips.NET