Archived

This topic is now archived and is closed to further replies.

!ShowWindow

This topic is 5805 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I''m trying to create an invisible window as my main window. I''m using a dialog box for this. I have visible set to false and:
  
case WM_INITDIALOG:
	InstallSysMenu();
	ShowWindow(hWnd, SW_HIDE);
	return true;
        break;
  
Isn''t working. The only workaround I have is to post false messages to my prog and call ShowWindow(hWnd, SW_HIDE) there also (which is really queer). I''m using MSVC .NET & running Win2k. Any help is appreciated. Thanks.

Share this post


Link to post
Share on other sites
What exactly do you mean by "isn''t working"?

Why would you want to hide a window that''s not visible initially, if you didn''t show it in the first place?

Are you using DialogBox or CreateDialog?

Share this post


Link to post
Share on other sites
I''m using DialogBox. I tried to hide the window because it was showing even though I asked it politely not to. That''s what I mean by "isn''t working". It really won''t hide. I''m just wondering if anybody else has had this problem.

Share this post


Link to post
Share on other sites
Replace DialogBox with CreateDialog, and see if the problem goes away. If you do this, you''ll need a message pump.

Share this post


Link to post
Share on other sites