shellexecutea


files opened with ShellExecuteA (shell32.dll) appear behind Progress Window

Hi All,

I'm using Progress window, which uses ShellExecuteA (shell32.dll), to
open Word and Excel files on a WinXP client.

The problem is that the file opens successfully, but the window is placed
behind the application i.e. Word, Excel. Its pushed back and goes back to the Progress window where I pressed a button to open a file. File application should stay in front until I close it.

Do you know how to do this? If ShellExecuteA returns the handle, I would be able to use setforeground to set it, but it is not possible.

many thanks
Melly


Syndicate content