-/* $Id: defwnd.c,v 1.139 2004/05/21 12:46:59 weiden Exp $
+/* $Id: defwnd.c,v 1.140 2004/05/26 18:59:21 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll
}
VOID STATIC
-UserDrawMovingFrame(HDC hdc, RECT *rect, BOOL thickframe, HRGN ClipRgn)
+UserDrawMovingFrame(HDC hdc, RECT *rect, BOOL thickframe)
{
- HGDIOBJ OldObj;
-
- if(ClipRgn)
- {
- OldObj = SelectObject(hdc, ClipRgn);
- }
-
if(thickframe)
{
UserDrawWindowFrame(hdc, rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME));
{
UserDrawWindowFrame(hdc, rect, 1, 1);
}
-
- if(ClipRgn)
- {
- SelectObject(hdc, OldObj);
- }
}
VOID STATIC
DesktopRgn = CreateRectRgnIndirect(&clipRect);
}
+ SelectObject(hdc, DesktopRgn);
+
if( iconic ) /* create a cursor for dragging */
{
HICON hIcon = (HICON)GetClassLongW(hwnd, GCL_HICON);
/* invert frame if WIN31_LOOK to indicate mouse click on caption */
if( !iconic && !DragFullWindows)
{
- UserDrawMovingFrame( hdc, &sizingRect, thickframe, DesktopRgn );
+ UserDrawMovingFrame( hdc, &sizingRect, thickframe);
}
for(;;)
if (msg.message == WM_PAINT)
{
- if(!iconic && !DragFullWindows) UserDrawMovingFrame( hdc, &sizingRect, thickframe, DesktopRgn );
+ if(!iconic && !DragFullWindows) UserDrawMovingFrame( hdc, &sizingRect, thickframe );
UpdateWindow( msg.hwnd );
- if(!iconic && !DragFullWindows) UserDrawMovingFrame( hdc, &sizingRect, thickframe, DesktopRgn );
+ if(!iconic && !DragFullWindows) UserDrawMovingFrame( hdc, &sizingRect, thickframe );
continue;
}
else if (ON_RIGHT_BORDER(hittest)) newRect.right += dx;
if (ON_TOP_BORDER(hittest)) newRect.top += dy;
else if (ON_BOTTOM_BORDER(hittest)) newRect.bottom += dy;
- if(!iconic && !DragFullWindows) UserDrawMovingFrame( hdc, &sizingRect, thickframe, DesktopRgn );
+ if(!iconic && !DragFullWindows) UserDrawMovingFrame( hdc, &sizingRect, thickframe );
capturePoint = pt;
/* determine the hit location */
if (!iconic)
{
if(!DragFullWindows)
- UserDrawMovingFrame( hdc, &newRect, thickframe, DesktopRgn );
+ UserDrawMovingFrame( hdc, &newRect, thickframe );
else {
/* To avoid any deadlocks, all the locks on the windows
structures must be suspended before the SetWindowPos */
DestroyCursor( hDragCursor );
}
else if(!DragFullWindows)
- UserDrawMovingFrame( hdc, &sizingRect, thickframe, DesktopRgn );
+ UserDrawMovingFrame( hdc, &sizingRect, thickframe );
if (Style & WS_CHILD)
ReleaseDC( hWndParent, hdc );