Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!microsoft!kensy From: kensy@microsoft.UUCP (Ken SYKES) Newsgroups: comp.windows.ms.programmer Subject: Re: Keeping a window in front Message-ID: <59231@microsoft.UUCP> Date: 21 Nov 90 02:09:01 GMT References: <5848@hsv3.UUCP> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Organization: Microsoft Corp., Redmond WA Lines: 6 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. Ken Sykes Disclaimer: The above opinions are solely my own.