Hi;
I am calling ShellExecute from the OnInitDialog() function of a Dialog to edit a file with an external application (probably MS Word). I want the editor Window to appear on top but it is appearing behind the calling process. I suspect that the Dialog's ShowWindow function is receiving the focus after the external Process window is displayed. I've tried calling ShellExecute from the Dialogs ShowWindow function but this did not work. Any idea on how I can force the focus to the external app?

Thanks