Hi Mark,
I'm not sure exactly what your looking for but the window that gets the
focus when an MDI app is activated is the last window within that app that
had the input focus when the app lost focus (when an other app or shortcut
on the desktop was brought to the foreground).
In an MFC dialog or form view, the parent frame or view keeps track of
which child had the focus before going out of focus with a statement
similar to:
m_hFocusWnd = ::GetFocus();
When it gets the focus again it gives that child input focus with a
statement similar to:
::SetFocus(m_hFocusWnd);
Hope this helps.
--
Jean-Fran?ois Davignon
Conservationist and programmer
Quote:
> When you reestablish focus to an MDI MFC app, what window gets focus?
> It's not CMainFrame, I can find it in spy, but I can't find the class.
> It's also not the window that previously had focus, because that's the
> problem I'm having, reestablishing focus to the window that previously
had
> it.
> --