Newsgroups: comp.windows.ms.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!me!ecf!hamann
From: hamann@ecf.toronto.edu (Gilbert E Hamann)
Subject: Re: Setting a window to the front or back
Message-ID: <1990Nov21.203017.28986@ecf.utoronto.ca>
Originator: hamann@mv04.ecf
Sender: news@ecf.utoronto.ca (News Administrator)
Organization: University of Toronto, Engineering Computing Facility
Date: Wed, 21 Nov 90 20:30:17 GMT

The function SetWindowPos allows you to set a Window to the top
of the list or bottom of the list.  This is done by setting the
hWndInsertAfter parameter to NULL or 1, respectively, as mentioned
in the comments section of the SDK.  Windows uses this list in
deciding what order to draw the Windows in.

Please use this function with discretion.  We are writing an application
to allow people with motor disabilities to access Windows.  It is
imperative that the program's window is at the top of the stack so that
they have complete access to it.  If applications start fighting for
this control, Windows will become drafty :-)

-- 
Gil Hamann
hamann@ecf.toronto.edu or hamann@ecf.utoronto.ca
