Jump to content

WinSaveWindowPos: Difference between revisions

From EDM2
Created page with "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..."
 
No edit summary
 
Line 8: Line 8:
: Identifier of the frame window repositioning process.
: Identifier of the frame window repositioning process.
: This handle is provided in the second parameter of the [[WM_ADJUSTFRAMEPOS]] message.
: This handle is provided in the second parameter of the [[WM_ADJUSTFRAMEPOS]] message.
;pswp ([[PSWP]]) - Input
;pswp (P[[SWP]]) - Input
: Array of [[SWP]] structures.
: Array of [[SWP]] structures.
;cswp ([[ULONG]]) - Input
;cswp ([[ULONG]]) - Input

Latest revision as of 22:54, 9 April 2025

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