WinQueryTaskSizePos: Difference between revisions
Appearance
m Martini moved page OS2 API:WinQueryTaskSizePos to OS2 API:PMI:WinQueryTaskSizePos |
mNo edit summary |
||
Line 1: | Line 1: | ||
;WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct) : Get the size and position of the next window to be created. | |||
; WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct) : Get the size and position of the next window to be created. | |||
=== Parameters === | === Parameters === | ||
; anchorBlockHndl - [[ | ;anchorBlockHndl - [[HAB]] - input : The anchor block handle. | ||
; sessionId - [[ | ;sessionId - [[ULONG]] - input : The session identifier or zero for the current session. | ||
; swpStruct - [[ | ;swpStruct - [[SWP]] - output : Window size and positioning data. | ||
=== Returns === | === Returns === | ||
Function returns [[ | Function returns [[BOOL]] of: | ||
;[[ | ;[[TRUE]] : Success | ||
;[[ | ;[[FALSE]] : Failure | ||
Possible returns from [[ | Possible returns from [[WinGetLastError]]: | ||
* [[OS2 API:PMI:error#PMERR_INVALID_PARAMETERS|PMERR_INVALID_PARAMETERS]] | * [[OS2 API:PMI:error#PMERR_INVALID_PARAMETERS|PMERR_INVALID_PARAMETERS]] | ||
* [[OS2 API:PMI:error#PMERR_INVALID_SESSION_ID|PMERR_INVALID_SESSION_ID]] | * [[OS2 API:PMI:error#PMERR_INVALID_SESSION_ID|PMERR_INVALID_SESSION_ID]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | ||
=== Calling conversion === | === Calling conversion === | ||
Line 30: | Line 22: | ||
=== Example Code === | === Example Code === | ||
HAB anchorBlockHndl; | |||
ULONG sessionId; | |||
SWP swpStruct; | |||
BOOL rc; | |||
... | ... | ||
rc = WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct); | rc = WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct); | ||
Line 39: | Line 31: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinCreateStdWindow]] | ||
[[ | *[[WinRestoreWindowPos]] | ||
[[ | *[[WinSetWindowPos]] | ||
[[ | *[[WinStoreWindowPos]] | ||
[[Category: | [[Category:Win]] |
Revision as of 18:46, 23 December 2016
- 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); ...