When running the attached scao.cpp file under XP, a word application is launched and appears on top.
However, when running on Windows 7, the word application is launched, but it does not appear on top.
To make the word app appear on top, it seems desirable to get the HWND for the MSWordApplication in the code (m_app). The HWND could then be used to make a call to "::setForegroundWindow(HWN
D)". However, it is unclear how to get the HWND for the MSWordApplication (see MSWord.h).
If the HWND was available, it seems like the setForegroundWindow call should follow "m_app->Activate()". The following comment was inserted to simplify finding this call:
// HOW TO MAKE THE WORD APP APPEAR ON TOP?????
Thanks in advance.