Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Macintosh Toolbox Essentials /
Chapter 4 - Window Manager / Window Manager Reference
Window Manager Routines


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 the DragGrayRgn function, and the MoveWindow procedure. The DragGrayRgn 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. The DragGrayRgn function itself calls the PinRect 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 calls MoveWindow, which moves the window to a new location.


Subtopics
DragWindow
MoveWindow
DragGrayRgn
PinRect

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996