I have a Visual C++ dialog application. I wish to hide the main window when the program is launched while adding an icon to the system tray to restore it from. For some reason, no matter where I call ShowWindow(SW_HIDE) from, the window is still displayed when launched. After the program is launched, then if ShowWindow is called on some event it works fine.
I found some answer about this... but it didn´t work... It told me to post a userdefined message in the OnInitDialog()... when I recieve the message I should ShowWindow(SW_HIDE)... Didn´t Work Fro Me Though