🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #690

Re: Function to push a window behind other windows

#690
From: Risto Lankinen
Date: Thu, 22 Nov 1990 08:27
32 lines
2328 bytes
nxh@meaddata.com (Nobuya "Higgy" Higashiyama) writes:

>Help!  In my application I need to push a window to the bottom of stacked
>windows, but I can't seem to find a function that will do that for me.  It's
>pretty easy to put a window on top of every other window, since you only need
>to call a function.  Question is: is there a technique I can use to accomplish
>this in the absence of PushToBottom () function (or such)?  Thanks in advance!

Hi!

One way would be to call EnumWindows() , and have the lpEnumFunc() call the
BringWindowToTop() for all but the desired window.  The display is kinda wild
for a while, because there isn't (is there?) a way to prevent windows from
being redrawn between calls.

That was the 'easy way'.  The harder (but prettier) way in Windows 3.0 is to
use the functions Begin-/End-/DeferWindowPos() .  They're used to manipulate
the window manager's internal list of windows in a number of ways, including
their size, location and the position in the list.  I think they're meant for
MDI applications to tile/cascade their child windows, but I've tried out, and
they work fine with task windows as well.  If you use them, take care with the
iconic windows.  I've noticed, that the 'text line' window underneath each is
actually a separate window, defering which you will want to synchronize with
the icon itself.  The deferring function is also powerful enough to resize
windows which otherwise couldn't, like Calculator or Control Panel.

Terveisin: Risto Lankinen
-- 
Risto Lankinen / product specialist ***************************************
Nokia Data Systems, Technology Dept *  2                              2   *
THIS SPACE INTENTIONALLY LEFT BLANK * 2 -1 is PRIME!  Now working on 2 +1 *
replies: risto@yj.data.nokia.fi     ***************************************
Technical Details
Message-ID: <843@tuura.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bloom-beacon!eru!hagbard!sunic!news.funet.fi!funic!fuug!tuura!risto
References: <1979@meaddata.meaddata.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bloom-beacon!eru!hagbard!sunic!news.funet.fi!funic!fuug!tuura!risto
From: risto@tuura.UUCP (Risto Lankinen)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Function to push a window behind other windows
Message-ID: <843@tuura.UUCP>
Date: 22 Nov 90 08:27:59 GMT
References: <1979@meaddata.meaddata.com>
Organization: Nokia Data Systems Oy
Lines: 32