Quote:
>Does anybody know why 'ShowWindow(SW_HIDE)' does not work in
>'OnInitDialog()' function of an dialog based app. The problem is that I have
>an dialog based app with only one window (the main dialog) and I can't hide
>it with ShowWindow()
If you want a clean implementation of a hidden dialog-based
application, the best way is to make the dialog modeless. It's easy to
do, and there's sample code for doing this on my web site. See the URL
below, and go to tip 26 on the Win32 Code page.
--
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~