473,505 Members | 13,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
5 6106
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4400
by: CPNZ | last post by:
I have a database i am m oving to another server, during the process I am moving the data and log files to another drive.(Which I have done countless times before with no problems) The problem I...
4
1766
by: Robert Samuel White | last post by:
Hi there. Can anyone point me to some good references or examples on how to create an independent tray program that can send triggers to external applications all designed inside the same...
3
1757
by: shivaranjani.s.adimulam | last post by:
Hi, I have a problem regarding restoring previous instance of an application minimized in systray.So that when I try to run the application it should maximize its previous instance instead of...
2
2627
by: Robert S. Liles | last post by:
Following the advice of several members, especially Dragon, I have gotten this routine to work. If you double click on your program's icon to load it, and it is already running minimized into the...
5
3218
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup...
3
7911
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
3
2198
by: Joseph Geretz | last post by:
The conventional approach is easy enough; drop a NotifyIcon onto a Form. When the form is loaded - bingo - the icon appears in the System Tray. I can't use this approach though. I'm writing a...
2
3872
by: yolilb | last post by:
hi everybody I'm using VB6 I need to restore a program that resides in the sys tray. I menage to write a function that finds the hwnd of the program but I can't figure out how to restore the...
3
3303
by: Usman Jamil | last post by:
Hi I've a windows application that does a lengthy backup process. While the process is going on, I need to show a progress bar inside system tray or just above the system tray. Can someone...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.