Important: The information in this document is obsolete and should not be used for new development.
Moving Windows
This section describes the procedures that move windows on the desktop.To move a window, your application ordinarily needs to call only the
DragWindow
procedure, which itself calls theDragGrayRgn
function, and theMoveWindow
procedure. TheDragGrayRgn
function drags a dotted outline of the window on the screen, following the motion of the cursor, as long as the user holds down the mouse button. TheDragGrayRgn
function itself calls thePinRect
function to contain the point where the cursor was when the mouse button was first pressed inside the
available desktop area. When the user releases the mouse button,DragWindow
callsMoveWindow
, which moves the window to a new location.
Subtopics
- DragWindow
- MoveWindow
- DragGrayRgn
- PinRect