Jump to content

WinQueryDesktopWorkArea: Difference between revisions

From EDM2
mNo edit summary
Ak120 (talk | contribs)
mNo edit summary
 
Line 2: Line 2:


==Syntax==
==Syntax==
  retVal = WinQueryDesktopWorkArea(HWND_DESKTOP,&rectlDesktop);
  WinQueryDesktopWorkArea(hwndDesktop, pwrcWorkArea)


==Parameters==
==Parameters==
; HWND hwndDesktop (input) : Handle to desktop window.  
;hwndDesktop ([[HWND]]) - input:Handle to desktop window.
 
;pwrcWorkArea (PWRECT) - input:Pointer to the bounding rectangle. The value must be in the range of -32,767 through 32,767.
; PWRECT pwrcWorkArea (input) : Pointer to the bounding rectangle. The value must be in the range of -32,767 through 32,767.  


==Returns==  
==Returns==  
; BOOL retVal : Returns Success indicator.  
;BOOL retVal: Returns Success indicator.
* TRUE Desktop work area provided.
* TRUE Desktop work area provided
* FALSE Desktop work area not provided.
* FALSE Desktop work area not provided


==Include Info==
==Include Info==
        #include <os2.h>            
#include <os2.h>
        
        
[[Category:Win]]
[[Category:Win]]

Latest revision as of 03:46, 1 January 2020

This is used to get the size of the desktop workarea.

Syntax

WinQueryDesktopWorkArea(hwndDesktop, pwrcWorkArea)

Parameters

hwndDesktop (HWND) - input
Handle to desktop window.
pwrcWorkArea (PWRECT) - input
Pointer to the bounding rectangle. The value must be in the range of -32,767 through 32,767.

Returns

BOOL retVal
Returns Success indicator.
  • TRUE Desktop work area provided
  • FALSE Desktop work area not provided

Include Info

#include <os2.h>