
dialog based mfc app that starts without showing the main window
Quote:
>i would like to know how to make such a dialog based mfc app that
>can start with the main dialog that doesn't appear (just after clicket on
>the icon in the tray). so how to hide the main window when the
>program is started?
There is sample code for creating an invisible dialog-based app on my
website here :
www.mooremvp.freeserve.co.uk/Win32/w32tip26.htm
(that's tip 26 on the Win32 Code page). Use Shell_NotifyIcon to insert
the icon, and show the window inside the click handler for the icon.
For tips on creating the icon and defining the handler, see
www.mooremvp.freeserve.co.uk/Win32/w32tip1.htm
--
Bob Moore [MVP]
http://www.mooremvp.freeserve.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Due to an unreasonable amount of queries, I no
longer answer unsolicited email questions. Sorry,
no exceptions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~