WinQueryTaskSizePos: Difference between revisions
Appearance
m verbiage change |
m formatting |
||
Line 1: | Line 1: | ||
== WinQueryTaskSizePos == | == WinQueryTaskSizePos == | ||
; WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct) : | ; WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct) : Get the size and position of the next window to be created. | ||
Get the size and position of the next window to be created. | |||
=== Parameters === | === Parameters === | ||
; anchorBlockHndl - [[OS2 API:DataType:HAB|HAB]] - input : | ; anchorBlockHndl - [[OS2 API:DataType:HAB|HAB]] - input : The anchor block handle. | ||
The anchor block handle. | ; sessionId - [[OS2 API:DataType:ULONG|ULONG]] - input : The session identifier or zero for the current session. | ||
; sessionId - [[OS2 API:DataType:ULONG|ULONG]] - input : | ; swpStruct - [[OS2 API:DataType:SWP|SWP]] - output : Window size and positioning data. | ||
The session identifier or zero for the current session. | |||
; swpStruct - [[OS2 API:DataType:SWP|SWP]] - output : | |||
Window size and positioning data. | |||
=== Constants === | === Constants === |
Revision as of 04:09, 1 May 2006
WinQueryTaskSizePos
- 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.
Constants
None
Returns
Function returns BOOL of:
Possible returns from WinGetLastError:
Module
Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
Export name/Ordinal
Calling conversion
Example Code
HAB anchorBlockHndl; ULONG sessionId; SWP swpStruct; BOOL rc; ... rc = WinQueryTaskSizePos(anchorBlockHndl, sessionId, swpStruct); ...
Related Functions
WinCreateStdWindow WinRestoreWindowPos WinSetWindowPos WinStoreWindowPos