Partilhar via


CComControlBase::OnSetFocus

Checks that the control is in-place active and has a valid control site, then informs the container the control has gained focus.

LRESULT OnSetFocus(
   UINT /* nMsg */,
   WPARAM /* wParam */,
   LPARAM /* lParam */,
   BOOL& bHandled 
);

Parameters

  • nMsg
    Reserved.

  • wParam
    Reserved.

  • lParam
    Reserved.

  • bHandled
    Flag that indicates whether the window message was successfully handled. The default is FALSE.

Return Value

Always returns 1.

Remarks

Sends a notification to the container that the control has received focus.

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class

Other Resources

CComControlBase Members