Important: The information in this document is obsolete and should not be used for new development.
Moving a Window
When the user drags a window by the title bar (except for the close and zoom box regions), the window should move, following the cursor as it moves on the
desktop. Your application can easily let the user move the window by calling theDragWindow
procedure.The
DragWindow
procedure draws an outline of the window on the screen and
moves the outline as the user moves the mouse. When the user releases the mouse button,DragWindow
calls theMoveWindow
function, which redraws the window in
its new location.For an example of moving a window, see the
inDrag
case in Listing 4-9 on page 4-39.