COleControl::GetFocus

CWnd* GetFocus( );

Return Value

If the control is activated and windowless, returns this if the control currently has the keyboard focus (as determined by the control’s container), or NULL if it does not have the focus.

Otherwise, returns the CWnd object that has the focus (same as CWnd::GetFocus).

Remarks

Call this function to determine whether the COleControl object has the focus. An activated windowless control receives the focus when SetFocus is called.

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::SetFocus