Partager via


CWindow::SetActiveWindow

Active la fenêtre.

HWND SetActiveWindow( ) throw();

Notes

Consultez SetActiveWindow dans Kit de développement logiciel Windows.

Exemple

// 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();

Configuration requise

Header: atlwin.h

Voir aussi

Référence

CWindow, classe