Compartir a través de


CWindow::SetFocus

Establece el foco a la ventana.

HWND SetFocus( ) throw();

Comentarios

Vea SetFocus en Windows SDK.

Ejemplo

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::SetFocus() to set the input focus

CWindow myWindow;
myWindow.Attach(hWnd);
HWND hWndLeftFocus = myWindow.SetFocus();

Requisitos

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow