Thanks william for replying,
But what I want to do is want to put some code for hiding form in the
initInstance() function of the dialog itself. So that the dialog is not
shown once also. I am afraid that showwindow(SW_HIDE) will work in
initinstance...
Thank you..
Jigar Mehta
jb*******@yahoo.co.in
"William DePalo [MVP VC++]" <wi***@mvps.org> wrote in message
news:u0**************@TK2MSFTNGP11.phx.gbl...
Jigar Mehta <jb*******@yahoo.co.in> wrote in message
news:Oc**************@TK2MSFTNGP09.phx.gbl...
Now I want to hide that
dialog when initializing and start some of the threads depending on the
conditions... (threading part is ready but hiding a dialog makes me
annoying) So, the dialog must not appear one time also, it must be
initially hidden.
I know there would be four or five line of code for doing that but I
don't know it right now.. So, if you have it handy please give me..
Dialogs are windows of a particular class. Windows may be shown or hidden by
calling ShowWindow(). There the SW_HIDE flag can be used used to hide it and
SW_SHOWNORMAL can be used to display it.
Note that modal dialogs should not be hidden. That's because the "dialog
manager wants" to disable the parent/owner while a dialog is in progress.
Modeless dialogs, howver, may be shown or hidden as you like.
Regards,
Will