Actually, this question (bringing a window to the top) also concerns GDC windows too.
Concerning GDC windows, we call - on windows - SetWindowPos function. with parameter HWND_TOP (see
http://msdn.microsoft.com/en-us/library/ms633545(VS.85).aspx), and SetForegroundWindow (see
http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx ) - actually Qt Library does it for us.
We assume that:
- this functions should work
- if not, the system is responsible for the failure and we can anyway not do anything. MSDN page regarding SetForegroundWindow indicates that the behavior of windows has changed in different versions, and todays versions have restrictions about it. We decided to not override the default behavior, as described in msdn.
In WinCOM / IE, this is even "simpler" from our side: we do not do anything to bring the application on the front. GDC knows nothing about the COM server, and has no control on it except the calls you do.
BTW, a general remark about winCOM: most of the questions we get regarding COM could be considered as "out of subject", as they concern more the COM server application than WinCOM extension itself. (ok, some questions are really related to the extension, for instance "I can do this with an EXCEL macro, but this does not work with WinCOM").
So this is why sometimes we're not able to provide you an answer, as we're unfortunately not expert with all COM servers.
Nevertheless, the forum is the right place to ask, because:
- maybe someone else here may have tried before
- we (four js) try to gather all the WinCOM questions and everything should be made available in the support area.
Regards,
Pierre-Nicolas