Expand Minimize
This topic has not yet been rated - Rate this topic

COleControl::GetFocus

Determines whether the COleControl object has the focus.

CWnd* GetFocus( );

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).

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

Header: afxctl.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.