Keeping main window hidden
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Mar 27, 2001
- 414 views
Hi, In Win32lib is it possible to keep the main window hidden? The reason I want to do this is because of the way my application works, any of the windows can be closed and reopened so none of them is suitable to be the main window (the one supplied to WinMain). What I'm doing at the moment is making the window with zero height and width and giving it the WS_POPUP style. However, it still shows up on the alt-tab list. A way to hide it from the alt-tab list is to make it invisible: showWindow(wndEventProcessor,SW_HIDE) but this must be done after the window has been opened and it doesn't seem to work in the onOpen event, I suppose it could be done on a timer but this seems a very messy way of doing things. Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying