win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinQueryWindowPos (1.2)
Function Group                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMESSAGEMGR
 
BOOL WinQueryWindowPos(hwnd, pswp)
HWND hwnd;    /* handle of the window                            */
PSWP pswp;    /* address of the structure for window information */
 
The WinQueryWindowPos function retrieves a window's size and position.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwnd       Identifies the window to get the size and position of.
 
pswp       Points to an SWP structure that receives the window's size and
           position.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinSetWindowPos, SWP