IUIAutomation::RectToVariant Method
Creates a VARIANT that contains the coordinates of a rectangle.
Syntax
HRESULT RectToVariant( RECT *rc, VARIANT *var );
Parameters
- rc
[in] A RECT structure containing the coordinates.- var
[out, retval] A VARIANT that receives the coordinates
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The returned VARIANT has a data type of VT_ARRAY | VT_R8.
See Also