By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,383 Members | 2,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,383 IT Pros & Developers. It's quick & easy.

How to restore a system tray process from another program

P: n/a
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.
Jan 31 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Give these two a look. They're not what you want but they may give you some
ideas.
http://www.codeguru.com/Cpp/controls...cle.php/c5309/

http://www.codeproject.com/shell/min...y.asp#xx5745xx

You could use ShowWindow API with the SW_SHOWNORMAL flag.

"scottt" <sc****@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
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.

Jan 31 '06 #2

P: n/a
My suggestion is that you look into the Windows SDK SendMessage API function:

SendMessage(hwnd,WM_USER,0,WM_LBUTTONDBLCLK);
HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"scottt" wrote:
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.

Jan 31 '06 #3

P: n/a
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?


"Dale" wrote:
My suggestion is that you look into the Windows SDK SendMessage API function:

SendMessage(hwnd,WM_USER,0,WM_LBUTTONDBLCLK);
HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"scottt" wrote:
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.

Jan 31 '06 #4

P: n/a
I don't have an answer for you on that one. Besides Google, I'd suggest you
try the Win32 or PlatformSDK newsgroups.

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"scottt" wrote:
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?


"Dale" wrote:
My suggestion is that you look into the Windows SDK SendMessage API function:

SendMessage(hwnd,WM_USER,0,WM_LBUTTONDBLCLK);
HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"scottt" wrote:
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.

Jan 31 '06 #5

P: n/a
Thanks.

"Dale" wrote:
I don't have an answer for you on that one. Besides Google, I'd suggest you
try the Win32 or PlatformSDK newsgroups.

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"scottt" wrote:
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?


"Dale" wrote:
My suggestion is that you look into the Windows SDK SendMessage API function:

SendMessage(hwnd,WM_USER,0,WM_LBUTTONDBLCLK);
HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"scottt" wrote:

> 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.

Jan 31 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.