IOleControlSite::OnFocus
A version of this page is also available for
4/8/2010
Indicates whether the control managed by this control site has gained or lost the focus, according to the fGotFocus parameter. The container uses this information to update the state of Default and Cancel buttons according to how the control with the focus processes Return or Esc keys. A control's behavior regarding the Return and Esc keys is specified in the control's CONTROLINFO structure. See IOleControl::GetControlInfo.
Syntax
HRESULT OnFocus(
BOOL fGotFocus
);
Parameters
- fGotFocus
[in] Indicates whether the control gained (TRUE) or lost the focus (FALSE).
Return Value
S_OK is returned in all cases.
Requirements
Header | ocidl.h |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |