This function allows the general positioning of a window.
Note: Messages may be received from other processes or threads during the processing of this function.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwnd; /* Window handle. */ HWND hwndInsertBehind; /* Relative window-placement order. */ LONG x; /* Window position, x-coordinate. */ LONG y; /* Window position, y-coordinate. */ LONG cx; /* Window size. */ LONG cy; /* Window size. */ ULONG fl; /* Window-positioning options. */ BOOL rc; /* Repositioning indicator. */ rc = WinSetWindowPos(hwnd, hwndInsertBehind, x, y, cx, cy, fl);