CWnd::SetFocus

This method claims the input focus. The input focus directs all subsequent keyboard input to this window. Any window that previously had the input focus loses it.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

CWnd* SetFocus( );

See Also

CWnd::GetFocus