This method to determine whether the control has the focus.
CWnd* GetFocus( );
COleControl::SetFocus