Metodo IUIAutomationWindowPattern::SetWindowVisualState (uiautomationclient.h)

Riduce al minimo, ottimizza o ripristina la finestra.

Sintassi

HRESULT SetWindowVisualState(
  [in] WindowVisualState state
);

Parametri

[in] state

Tipo: WindowVisualState

Nuovo stato visivo della finestra.

Valore restituito

Tipo: HRESULT

Se questo metodo ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT .

Requisiti

Requisito Valore
Client minimo supportato Windows 7, Windows Vista con SP2 e Aggiornamento della piattaforma per Windows Vista, Windows XP con SP3 e Platform Update per Windows Vista [solo app desktop]
Server minimo supportato Windows Server 2008 R2, Windows Server 2008 con SP2 e Platform Update per Windows Server 2008, Windows Server 2003 con SP2 e Platform Update per Windows Server 2008 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione uiautomationclient.h (includere UIAutomation.h)

Vedi anche

IUIAutomationWindowPattern