CWindow::SetFocus

HWND SetFocus( );

See SetFocus in the Win32 SDK.

Remarks

Sets the input focus to the window.

Example

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

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

CWindow OverviewClass Members