Hidden window creation
Posted on 1999-01-10
Hey guys. I'm developing a Dialog based application. I need that the main window (a CDialog derived) stays initially hidden. How can i do it? I've been tried checking off the option "Visible" in the resource editor and it doesn't work. I've been tried calling ShowWindow(SW_HIDE) in OnInitDialog() function and it doesn't work. I've tried ModifyStyle(WS_VISIBLE, 0) in OnInitDialog() and it doesn't work. I've tried this:
if (CDialog::OnCreate(lpCreateStruct) == -1)
in OnCreate(...) function and it doesn't work.
Thanks in advance,