Notification, if dialog gains the focus?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, i have several modeless dialogs and i want know when the dialog gets the focus. I haven't found any message which is send to the dialog before he gets the focus. Any solution? TIA, Chris
-
Hi, i have several modeless dialogs and i want know when the dialog gets the focus. I haven't found any message which is send to the dialog before he gets the focus. Any solution? TIA, Chris
Chris, Try to handle WM_ACTIVATE message. Dialog itself doesn't get focus. Instead when dialog window is deactivated it remembers the child window that had focus last and when it is activated the dialog will set focus to that child window. Regards, Andrei Zenkovitch Dundas Software