Compartilhar via


CWindow::SetActiveWindow

Ativa a janela.

HWND SetActiveWindow( ) throw();

Comentários

See SetActiveWindow in the Windows SDK.

Exemplo

// The following example attaches a HWND to the CWindow object
// and sets the window as an active window by calling 
// CWindow::SetActiveWindow which returns the HWND of the
// previously active window.

CWindow myWindow;
myWindow.Attach(hWnd);   
HWND hWndPrev = myWindow.SetActiveWindow();

Requisitos

Cabeçalho: atlwin.h

Consulte também

Referência

Classe CWindow

Outros recursos

CWindow membros