Objective Grid: Determining if the grid has focus

Article ID: 528
Last updated: 16 Apr, 2018
Article ID: 528
Last updated: 16 Apr, 2018
Revision: 3
Views: 1622
Posted: 19 Jan, 2001
by Meltreger B.
Updated: 16 Apr, 2018
by Meltreger B.

Problem


How can I tell if the grid or one of its children has the focus?
 


Cause



Action


You can call:

  • CWnd* pFocus = GetFocus();
    BOOL bFocus = (pFocus == this || IsChild(pFocus));

This article was:   Helpful | Not helpful
Report an issue
Article ID: 528
Last updated: 16 Apr, 2018
Revision: 3
Views: 1622
Posted: 19 Jan, 2001 by Meltreger B.
Updated: 16 Apr, 2018 by Meltreger B.

Others in this category