Important: The information in this document is obsolete and should not be used for new development.
GetGrayRgn
Use theGetGrayRgn
function to retrieve a handle to the current desktop region.
FUNCTION GetGrayRgn: RgnHandle;DESCRIPTION
TheGetGrayRgn
function 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
DragWindow
to let the user drag a window, it can useGetGrayRgn
to set the limiting rectangle to the entire desktop area.SEE ALSO
See Listing 4-9 on page 4-44 for an example that usesGetGrayRgn
to specify the limiting rectangle when callingDragWindow
to let the user move a window.