Sample Code Uses PatBlt to Drag a Frame Rectangle (68569)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.0
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q68569 SUMMARY
The following information describes a procedure to smoothly drag the
window frame; this procedure is similar to the one that Windows uses
when a window is moved by dragging its caption bar. When the user
moves a window with the mouse or with the keyboard, Windows shows the
movement of the window by a moving a gray-patterned frame. The
dragging looks smooth because Windows updates only the portions of the
frame that need to be erased or drawn, leaving all other areas
untouched.
One technique to implement smooth dragging for a single rectangle is
described below. An actual frame in Windows consists of four thin
rectangles dragged together.
Modification Type: | Minor | Last Reviewed: | 8/4/2004 |
---|
Keywords: | kbdownload kb16bitonly kbfile kbSample KB68569 kbAudDeveloper |
---|
|