Compartir a través de


COleControl::GetFocus

Determines whether the COleControl object has the focus.

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

An activated windowless control receives the focus when SetFocus is called.

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::SetFocus