467,894 Members | 1,768 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,894 developers. It's quick & easy.

How to restore a system tray process from another program

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
  • viewed: 5396
Share:
5 Replies
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
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
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
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
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.

Similar topics

4 posts views Thread by Robert Samuel White | last post: by
3 posts views Thread by shivaranjani.s.adimulam | last post: by
2 posts views Thread by Robert S. Liles | last post: by
3 posts views Thread by Usman Jamil | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.