WinQueryTaskSizePos: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinQueryTaskSizePos to WinQueryTaskSizePos |
mNo edit summary |
||
Line 4: | Line 4: | ||
;anchorBlockHndl - [[HAB]] - input : The anchor block handle. | ;anchorBlockHndl - [[HAB]] - input : The anchor block handle. | ||
;sessionId - [[ULONG]] - input : The session identifier or zero for the current session. | ;sessionId - [[ULONG]] - input : The session identifier or zero for the current session. | ||
;swpStruct - | ;swpStruct - SWP - output : Window size and positioning data. | ||
=== Returns === | === Returns === | ||
Line 32: | Line 32: | ||
=== Related Functions === | === Related Functions === | ||
*[[WinCreateStdWindow]] | *[[WinCreateStdWindow]] | ||
* | *WinRestoreWindowPos | ||
* | *WinSetWindowPos | ||
* | *WinStoreWindowPos | ||
[[Category:Win]] | [[Category:Win]] |
Revision as of 18:00, 18 January 2017
- WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct)
- Get the size and position of the next window to be created.
Parameters
- anchorBlockHndl - HAB - input
- The anchor block handle.
- sessionId - ULONG - input
- The session identifier or zero for the current session.
- swpStruct - SWP - output
- Window size and positioning data.
Returns
Function returns BOOL of:
Possible returns from WinGetLastError:
Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
Calling conversion
Example Code
HAB anchorBlockHndl; ULONG sessionId; SWP swpStruct; BOOL rc; ... rc = WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct); ...
Related Functions
- WinCreateStdWindow
- WinRestoreWindowPos
- WinSetWindowPos
- WinStoreWindowPos