[comp.windows.ms.programmer] Setting a window to the front or back

hamann@ecf.toronto.edu (Gilbert E Hamann) (11/22/90)

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