Jump to content

WinSaveWindowPos

From EDM2
Revision as of 22:54, 9 April 2025 by Martini (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function associates an array of SWP structures with the process of repositioning a frame window.

Syntax

 WinSaveWindowPos(hsvwp, pswp, cswp)

Parameters

hsvwp (HSAVEWP) - Input
Identifier of the frame window repositioning process.
This handle is provided in the second parameter of the WM_ADJUSTFRAMEPOS message.
pswp (PSWP) - Input
Array of SWP structures.
cswp (ULONG) - Input
Count of SWP structures.

Returns

rc (BOOL) - returns
Success indicator.
TRUE
Successful completion
FALSE
Error occurred.

Remarks

This function is used only during the processing of the WM_ADJUSTFRAMEPOS message.

Example Code

#define INCL_WINFRAMEMGR
#include <OS2.H>
#define COUNT 10
HSAVEWP hsvwp;
SWP aswp[COUNT];
ULONG  msg;

switch(msg){

case WM_ADJUSTFRAMEPOS:
WinSaveWindowPos(hsvwp,aswp,COUNT);
}

Related Messages

Related Functions