IOleControlSite::OnFocus (Windows CE 5.0)

Send Feedback

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.

HRESULT OnFocus(   BOOL fGotFocus);

Parameters

  • fGotFocus
    [in] Indicates whether the control gained (TRUE) or lost the focus (FALSE).

Return Values

S_OK is returned in all cases.

Requirements

OS Versions: Windows CE 4.0 and later.
Header: ocidl.h.

See Also

COM Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.