Hi,
Dan: Thank's for the tips!
Scoreman: I found that capturing WM_ACTIVATE works as long as one capture it in the parent frame window. I've added an option "Force focus" to OpenTrek so it takes care of it automatically.
One thing I had to check for though is that the new window is not a sibling of the current frame window (e.g. a dialog), since it's "OK" button otherwise will be hidden by that of CMainWnd - the (X).
/Sanneblad
www.opentrek.com
www.gapitools.com