1. Keeping main window hidden

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

new topic     » topic index » view message » categorize

2. Re: Keeping main window hidden

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.
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Keeping main window hidden

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu