CComControl::SetControlFocus

This method sets or removes the keyboard focus to or from the control. For a windowed control, the Windows CE function SetFocus is called. For a windowless control, IOleInPlaceSiteWindowless::SetFocus is called. Through this call, a windowless control obtains the keyboard focus and can respond to window messages.

At a Glance

Header file: Atlctl.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL SetControlFocus( BOOL bGrab );