1. Keeping main window hidden
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Mar 27, 2001
- 435 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
2. Re: Keeping main window hidden
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 27, 2001
- 446 views
One "trick" is to make it move it off the screen. setRect(mainwin, -999, -999, 0, 0) in the next release there is an onActivate handler that can be used to do things after the window is opened but before it is displayed. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower." > 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. >
3. Re: Keeping main window hidden
- Posted by Kat <gertie at PELL.NET> Mar 27, 2001
- 430 views
On 27 Mar 2001, at 4:08, Thomas Parslow (PatRat) wrote: > > 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). My Eu starts running in the taskbar, no window is popped up unless i click on that taskbar icon, is that what you mean? Kat