This function performs the WinSetWindowPos function for cswp windows, using pswp, an array of structures whose elements correspond to the input parameters of WinSetWindowPos.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ PSWP pswp; /* An array of set window position (SWP) structures. */ ULONG cswp; /* Window count. */ BOOL rc; /* Positioning success indicator. */ rc = WinSetMultWindowPos(hab, pswp, cswp);