Hello all -

I have a dialog that handles the WM_ACTIVATE message to know when it's deactivated for another window. The 'pWndOther' parameter of OnActivate indicates the window being activated, however I have a need to know what window will receive the input focus at this time. This window could be a child control on the window being activated. Calling CWnd::GetFocus in my dialog's OnActivate handler returns the window with the current focus, but I want the window that is GOING to get the focus. Is there any way to do this? Thanks in advance!