SetWindowPos Flags

Const SWP_FRAMECHANGED = &H20
Const SWP_DRAWFRAME = SWP_FRAMECHANGED
Const SWP_HIDEWINDOW = &H80
Const SWP_NOACTIVATE = &H10
Const SWP_NOCOPYBITS = &H100
Const SWP_NOMOVE = &H2
Const SWP_NOSIZE = &H1
Const SWP_NOREDRAW = &H8
Const SWP_NOZORDER = &H4
Const SWP_SHOWWINDOW = &H40

The SetWindowPos flags tell how to move (or not to move) the window. These flags can be combined except for contradictory pairs (such as SWP_HIDEWINDOW and SWP_SHOWWINDOW).

SWP_FRAMECHANGED, SWP_DRAWFRAME
Redraw the window fully in its new position.
SWP_HIDEWINDOW
Hide the window from the screen.
SWP_NOACTIVATE
Do not make the window active after moving it unless it was already the active window.
SWP_NOCOPYBITS
Do not redraw anything drawn on the window after it is moved.
SWP_NOMOVE
Do not move the window.
SWP_NOSIZE
Do not resize the window.
SWP_NOREDRAW
Do not remove the image of the window in its former position, effectively leaving a ghost image on the screen.
SWP_NOZORDER
Do not change the window's position in the Z-order.
SWP_SHOWWINDOW
Show the window if it is hidden.

Used by: SetWindowPos
Back to the index.


Back to Paul Kuliniewicz's Home Page
E-mail: Borg953@aol.com
This page is at http://members.aol.com/Borg953/api/constants/setwindowposflags.html