🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Keeping a window in front

#734
From: James Seidman
Date: Tue, 27 Nov 1990 06:44
15 lines
1196 bytes
kensy@microsoft.UUCP (Ken SYKES) writes:
>How about WM_KILLFOCUS?  If your app has the focus it is certainly on top.
>If the focus changes use SetWindowPos to make sure the Z ordering is
>maintained.

However, just doing a SetWindowPos() on WM_KILLFOCUS won't insure that a
window stays in front.  Take the case that my app has already lost focus.
Now someone moves another window in front of it.  I need some way to detect
that that's happened, and I don't see any appropriate WM message which does
that.
-- 
Jim Seidman, Headland Technology, 46221 Landing Parkway, Fremont CA 94538
"If I screw up, I just kill someone.  But if you screw up, they suffer for
the rest of their lives."
			     - A remark made by a surgeon to a psychiatrist.
Technical Details
Message-ID: <9816@jarthur.Claremont.EDU>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!jarthur!jseidman
References: <5848@hsv3.UUCP> <59231@microsoft.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!jarthur!jseidman
From: jseidman@jarthur.Claremont.EDU (James Seidman)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Keeping a window in front
Message-ID: <9816@jarthur.Claremont.EDU>
Date: 27 Nov 90 06:44:12 GMT
References: <5848@hsv3.UUCP> <59231@microsoft.UUCP>
Organization: Headland Technology, Fremont, CA
Lines: 15