I have a tray application that under certain conditions, I do 1 of 2 things:
1) Load another dialog for user input, then continue on to shell to an external application
2) No user input needed, shell to external application
If the user manually clicks the tray icon and makes a selection via a popup menu, everything works fine - any dialogs I want seem to come to the front when I want, focus works like I want, etc.
If I have a timer running, that based on certain conditions will try to automatically load the extra dialogs, or shell to the external applications - all dialogs seem to come up behind any other open dialogs most of the time, no matter what I try.
Anyone have any suggestions for bringing a dialog to the front, and make all focus issues work correctly?
I tried WS_EX_TOPMOST, but that brought it to the front, and the window that was on top before still retains focus.
I will try to come up with a 'shell' of an app that fails, at the moment, the app can't be posted and tested as is...
1) Load another dialog for user input, then continue on to shell to an external application
2) No user input needed, shell to external application
If the user manually clicks the tray icon and makes a selection via a popup menu, everything works fine - any dialogs I want seem to come to the front when I want, focus works like I want, etc.
If I have a timer running, that based on certain conditions will try to automatically load the extra dialogs, or shell to the external applications - all dialogs seem to come up behind any other open dialogs most of the time, no matter what I try.
Anyone have any suggestions for bringing a dialog to the front, and make all focus issues work correctly?
I tried WS_EX_TOPMOST, but that brought it to the front, and the window that was on top before still retains focus.
I will try to come up with a 'shell' of an app that fails, at the moment, the app can't be posted and tested as is...
Comment