Important: The information in this document is obsolete and should not be used for new development.
GetGrayRgn
Use theGetGrayRgnfunction to retrieve a handle to the current desktop region.
FUNCTION GetGrayRgn: RgnHandle;DESCRIPTION
TheGetGrayRgnfunction returns a handle to the current desktop region from the global variableGrayRgn.The desktop region represents all available screen space, that is, the desktop area displayed by all monitors attached to the computer. Ordinarily, your application
doesn't need to access the desktop region directly.When your application calls
DragWindowto let the user drag a window, it can useGetGrayRgnto set the limiting rectangle to the entire desktop area.SEE ALSO
See Listing 4-9 on page 4-44 for an example that usesGetGrayRgnto specify the limiting rectangle when callingDragWindowto let the user move a window.