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.
!ShowWindow
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:
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?
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?
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.
Replace DialogBox with CreateDialog, and see if the problem goes away. If you do this, you''ll need a message pump.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement