I want my prog to start in the system tray only. I don't want to see the ugly grey window until I am ready. Putting in the tray has proved successful, but I can't get the damn window to hide. I tried removing the visible property from the .rc, and also tried calling showwindow to hide it. How do I uh...... not have the window visible?

Thanks with a capital T.
Posted on 2001-10-23 11:05:48 by lackluster
Is it possible to just start the main window in the system tray? Or to just start a not visible window as your main window?
Posted on 2001-10-24 12:23:05 by lackluster
I don't want to see the ugly grey window until I am ready.

How about painting it white? :grin:

When you create a window with CreateWindowEx (no dialog), you always have to call ShowWindow one time. At this point you can hide it my specifying SW_HIDE as parameter. But for dialogs, you'll have to hide it somewhere else. Try using showwindow with SW_HIDE in some dialog messages like WM_INITDIALOG or WM_ACTIVATE etc.. You said you already tried showwindow but when did you call this function?

Posted on 2001-10-24 13:41:50 by Thomas

well' you actully have several ways of doing it

what i did :

add in createwindow . WS_MINIMIZE
so it the window will start minimize

.elseif uMsg==WM_SIZE
; insert to tray icon - code ( from the tutrial)

hope this help

Posted on 2001-10-24 15:08:39 by eko

How about painting it white? :grin:

LoL! Good one :alright:.

I tried putting showwindow in WM_INITDIALOG, but not WM_ACTIVATE. I will try these suggestions. THanks, Thomas, eko.
Posted on 2001-10-25 21:02:19 by lackluster