WinSaveWindowPos: Difference between revisions
Appearance
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 difference)
|
Revision as of 16:28, 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);
}