Is there a way to get a handle to a focus control? I am looking for a way to get the control id in focus in my application.
After that, it would be easy to get the identifier with GetDlgCtrlID.
CWnd *pwnd = GetWindowOnFocus(); int wID = pwnd->GetDlgCtrlID();
This is the part of GetWindowOnFocus that I am missing!
source share