This function adds the default size function to the system menu of a secondary window.
#define INCL_SW #include <os2.h> HWND hwnd; /* Secondary window handle. */ PSZ pszDefaultSize; /* Text for system menu. */ BOOL rc; /* Return codes. */ rc = WinInsertDefaultSize(hwnd, pszDefaultSize);