Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!vsi1!hsv3!jls From: jls@hsv3.UUCP (James Seidman) Newsgroups: comp.windows.ms.programmer Subject: Keeping a window in front Message-ID: <5848@hsv3.UUCP> Date: 19 Nov 90 16:24:17 GMT Reply-To: jls@hsv3.UUCP (James Seidman) Organization: Video Seven / Headland Technology Lines: 14 There are a bunch of utilities (such as clocks, free-memory indicators, etc.) which keep a window promoted in front of everything else. I was wondering what the best way to do this is. After some poking around with SPY, the only message I can find which is somewhat reliably produced when a window is covered is WM_NCPAINT. (This in itself seems strange... it's not like part of the window is being exposed, just covered.) Is there a better way to keep a window promoted than to do a ShowWindow() on every WM_NCPAINT message? -- Jim Seidman (Drax), the accidental engineer. "It doesn't have to work... they'll be paralyzed just from laughing at me." - Dr. Who, _Shada_ UUCP: ames!vsi1!hsv3!jls INTERNET: hsv3.UUCP!jls@apple.com