O
Octavius Khan
I have an application that runs in the system tray and I use global hotkeys
to perform functions. When certain hotkeys are pressed, my system tray
application may display a message box and sometimes a balloontip, but then
focus is taken away from the application the user is using when this
happens. How can I return focus to the original application?
For example, let's say the user is using Notepad and then presses Ctrl-F9.
This causes the system tray application to paste a block of text into
Notepad and then display a balloontip saying that it did this. Now, focus
is taken away from Notepad and the titlebar is grey.
Thanks for your assistance.
to perform functions. When certain hotkeys are pressed, my system tray
application may display a message box and sometimes a balloontip, but then
focus is taken away from the application the user is using when this
happens. How can I return focus to the original application?
For example, let's say the user is using Notepad and then presses Ctrl-F9.
This causes the system tray application to paste a block of text into
Notepad and then display a balloontip saying that it did this. Now, focus
is taken away from Notepad and the titlebar is grey.
Thanks for your assistance.