🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to do system-wide floating wind

#2068
From: jeff
Date: Fri, 12 Apr 1991 05:54
21 lines
1245 bytes
>You know how, in Write, the Find dialog floats on top of the document but
>allows the parent to maintain the focus?  In other words you can type
>text into a document underneath the Find dialog.
>
>That's easy to do.  Normal WS_POPUP style will accomplish that much.
>But suppose I want to get the same effect globally , and have a window
>which floats over all other applications?  How can that be done?  It's
>easy to keep it on the top, but all three of the obvious API's for
>putting a window at the top of the Z order also activate it and give
>it the focus.
>
>Has anyone actually done this?  If so, how?

One method is to remember which window had the focus, then give the
focus back to that window (with SetFocus) after the popup is in
place.

	Jeff Dean
	jeff@cdp.igc.org
	uunet!pyramid!cdp!jeff
Technical Details
Message-ID: <1266500007@cdp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!sgi!cdp!jeff
References: <24137@well.sf.ca.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!sgi!cdp!jeff
From: jeff@cdp.UUCP
Newsgroups: comp.windows.ms.programmer
Subject: Re: How to do system-wide floating wind
Message-ID: <1266500007@cdp>
Date: 12 Apr 91 05:54:00 GMT
References: <24137@well.sf.ca.us>
Lines: 21
Nf-ID: #R:well.sf.ca.us:24137:cdp:1266500007:000:806
Nf-From: cdp.UUCP!jeff    Apr 11 22:54:00 1991