How to restore a system tray process from another program

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I asked a question along a similar line about a week ago and didn't get any
replies. Let me try to ask the quetion again a little bit different to see if
I can get some help on this problem.

Is there a way (API function) from one program to restore another
application that is running in the system tray? Specifically I need to send a
double mouse click to the application to get it to restore from the system
tray.

Thanks.
 
My suggestion is that you look into the Windows SDK SendMessage API function:

SendMessage(hwnd,WM_USER,0,WM_LBUTTONDBLCLK);


HTH
 
Thanks to both of you. That got me a step farther in understanding the problem.
I found that the problem is that the application does not have a
MainWindowHandle when it is in the system tray so it look like none of these
functions will work.

I would think that the application should have a handle that I could send
messages to but the Process class does not seem to have one that I can use
when its in the system tray.

any clues?
 
I don't have an answer for you on that one. Besides Google, I'd suggest you
try the Win32 or PlatformSDK newsgroups.

HTH
 
Back
Top