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
DragWindowprocedure, which itself calls theDragGrayRgnfunction, and theMoveWindowprocedure. TheDragGrayRgnfunction 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. TheDragGrayRgnfunction itself calls thePinRectfunction 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,DragWindowcallsMoveWindow, which moves the window to a new location.
Subtopics
- DragWindow
- MoveWindow
- DragGrayRgn
- PinRect