Can someone tell me how to make prog minimize to system tray by clock, instead of mere minimize to taskbar?
Announcement
Collapse
No announcement yet.
How to minimize to system tray?
Collapse
X
-
Re: How to minimize to system tray?
There isn't a way to do this within AMS...
But, here is a workaround that I've used.
You can use the ShowWindow function in the User32.dll to hide and show the window. Problem is there isn't a way the user can click on the hidden window to show it again. I created a C++ exe that creates a tray icon with a popup menu to restore the app. In the AMS project, I hide the window, execute the traywait.exe (with the wait until finished option), then follow it with a show window.
Kind of crude, but it does work.
Download Sample Here
Comment