Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
SWP (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINWINDOWMGR
typedef struct _SWP { /* swp */
USHORT fs;
SHORT cy;
SHORT cx;
SHORT y;
SHORT x;
HWND hwndInsertBehind;
HWND hwnd;
} SWP;
The SWP structure contains information about a window.
Field Description
────────────────────────────────────────────────────────────────────────────
fs Specifies window-positioning options. This field can be
one or more of the following values:
Value Meaning
──────────────────────────────────────────────────────────
SWP_ACTIVATE The window is activated and the focus
is set to the window that lost the
focus the last time the frame window
was deactivated. The activated window
cannot become the top window if it
owns other frame windows.
SWP_DEACTIVATE Deactivates the window (if it is the
active window).
SWP_EXTSTATECHANGE This flag is for application use. It
is used to pass an additional flag to
the portion of code that is handling
messages.
SWP_FOCUSACTIVATE Specifies that a frame window is
receiving the focus. This flag is set
so that an application that is
processing the WM_ADJUSTWINDOWPOS
message can tell if the message was
sent as the result of a focus
change.
SWP_FOCUSDEACTIVATE Specifies that a frame window is
losing the focus.
SWP_HIDE Specifies that the window is to be
hidden when created.
SWP_MAXIMIZE With SWP_MINIMIZE, causes a window to
be minimized, maximized, or restored.
SWP_MAXIMIZE and SWP_MINIMIZE are
mutually exclusive. If either
SWP_MINIMIZE or SWP_MAXIMIZE is
specified, then both SWP_MOVE and
SWP_SIZE also must be specified. The
WinSetWindowPos and
WinSetMultWindowPos functions depend
on the previous state of the window.
SWP_MINIMIZE See the description for
SWP_MAXIMIZE.
SWP_MOVE Changes the window position.
SWP_NOADJUST Does not send the window a
WM_ADJUSTWINDOWPOS message while
processing (so the window cannot
re-adjust itself).
SWP_NOREDRAW Does not redraw changes.
SWP_RESTORE Restores a minimized or maximized
window.
SWP_SHOW Specifies that the window is to be
shown when created.
SWP_SIZE Changes the window size.
SWP_ZORDER Changes the relative window
placement.
cy Specifies the window height.
cx Specifies the window width.
y Specifies the position of the lower edge of the window.
x Specifies the position of the left edge of the window.
hwndInsertBehind Identifies the window behind which this window is placed.
hwnd Identifies the window.
See Also
WinFormatFrame, WinGetMaxPosition, WinQueryTaskSizePos, WinQueryWindowPos,
WinSetMultWindowPos, WinSetWindowPos
♦