Article View: comp.os.ms-windows.programmer.misc
Article #1650Re: Set window topmost during runtime - how ?
From: Steve Loughran
Date: Fri, 16 Oct 1992 09:02
Date: Fri, 16 Oct 1992 09:02
19 lines
1185 bytes
1185 bytes
In comp.os.ms-windows.programmer.misc, rkms@edscom.demon.co.uk (Richard Spence) writes: > [ something about .. bringing a window to the top ] > To bring a window to the top of the heap you should call: > BringWindowToTop(hwnd) That brings it to the top of the current Z order...in windows 3.1 there are some "extras" to support a topmost window which seemed to be what the original poster was looking for. Use SetWindowPos(hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); Putting your window topmost can be both useful and antisocial: always give your users an option of disabling it. I have been having problems with system modal dialog boxes being hidden by such windows and it is very inconvenient. -Steve
Technical Details
Message-ID:
<59700006@otter.hpl.hp.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hplextra!otter.hpl.hp.com!otter!sloReferences:
<skrause.719056967@hp832>Show Full Headers
Complete Article Headers
From: slo@otter.hpl.hp.com (Steve Loughran) Date: Fri, 16 Oct 1992 09:02:50 GMT Subject: Re: Set window topmost during runtime - how ? Message-ID: <59700006@otter.hpl.hp.com> Organization: Hewlett-Packard Laboratories, Bristol, UK. Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hplextra!otter.hpl.hp.com!otter!slo Newsgroups: comp.os.ms-windows.programmer.misc References: <skrause.719056967@hp832> Lines: 19