IUIAutomation::VariantToRect-Methode (uiautomationclient.h)

Konvertiert einen VARIANT-Wert , der Rechteckkoordinaten enthält, in ein RECT.

Syntax

HRESULT VariantToRect(
  [in]          VARIANT var,
  [out, retval] RECT    *rc
);

Parameter

[in] var

Typ: VARIANT

Die Koordinaten eines Rechtecks.

[out, retval] rc

Typ: RECT*

Empfängt die konvertierten Rechteckkoordinaten.

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Anforderungen

   
Unterstützte Mindestversion (Client) Windows 7, Windows Vista mit SP2 und Plattformupdate für Windows Vista, Windows XP mit SP3 und Plattformupdate für Windows Vista [nur Desktop-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 R2, Windows Server 2008 mit SP2 und Plattformupdate für Windows Server 2008, Windows Server 2003 mit SP2 und Plattformupdate für Windows Server 2008 [nur Desktop-Apps]
Zielplattform Windows
Kopfzeile uiautomationclient.h (include UIAutomation.h)