- Timestamp:
- Mar 27, 2003, 12:02:27 PM (22 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r9866 r9943 1 /* $Id: oslibwin.cpp,v 1.14 0 2003-02-27 14:22:42sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.141 2003-03-27 11:02:26 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 1329 1329 //****************************************************************************** 1330 1330 //****************************************************************************** 1331 void OSLibWinLockVisibleRegions(BOOL fLock) 1332 { 1333 WinLockVisRegions(HWND_DESKTOP, fLock); 1334 } 1335 //****************************************************************************** 1336 //****************************************************************************** -
trunk/src/user32/oslibwin.h
r9866 r9943 1 /* $Id: oslibwin.h,v 1.7 3 2003-02-27 14:22:43sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.74 2003-03-27 11:02:26 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 344 344 ULONG OSLibWinQuerySysColor(int index); 345 345 346 void OSLibWinLockVisibleRegions(BOOL fLock); 347 346 348 #endif 347 349 … … 395 397 (((colorRef) & 0x000000FF)<<16) ) 396 398 399 397 400 #endif //__OSLIBWIN_H__ -
trunk/src/user32/wintrack.cpp
r9001 r9943 47 47 static void draw_moving_frame( HDC hdc, RECT *rect, BOOL thickframe, DWORD hittest, BOOL fRedraw) 48 48 { 49 if(hdc == 0) { 50 DebugInt3(); 51 return; 52 } 49 53 if (thickframe) 50 54 { … … 465 469 capturePoint = pt; 466 470 467 // if (IsZoomed(hwnd) || !IsWindowVisible(hwnd) || (exstyle & WS_EX_MANAGED)) return;468 471 if (IsZoomed(hwnd) || !IsWindowVisible(hwnd)) return; 469 472 … … 497 500 } 498 501 499 /* Get min/max info */ 500 501 // WINPOS_GetMinMaxInfo( hwnd, NULL, NULL, &minTrack, &maxTrack ); 502 /* Get min/max info */ 502 503 win32wnd->AdjustTrackInfo(&minTrack, &maxTrack); 503 504 GetWindowRect( hwnd, &sizingRect ); … … 539 540 540 541 /* Retrieve a default cache DC (without using the window style) */ 541 hdc = GetDCEx( parent, 0, DCX_CACHE); 542 hdc = 0; 543 if(!DragFullWindows) 544 hdc = GetDCEx( parent, 0, DCX_CACHE); 542 545 543 546 if( iconic ) /* create a cursor for dragging */ … … 546 549 if(!hIcon) hIcon = (HICON)SendMessageA( hwnd, WM_QUERYDRAGICON, 0, 0L); 547 550 if( hIcon ) hDragCursor = hIcon; 548 // CURSORICON_IconToCursor( hIcon, TRUE );549 551 if( !hDragCursor ) iconic = FALSE; 550 552 } … … 556 558 SetCapture( hwnd ); 557 559 560 BOOL fMove = (wParam & 0xfff0) == SC_MOVE; 561 558 562 //prevent the app from drawing to this window (or its children) 559 if(!DragFullWindows )563 if(!DragFullWindows || fMove) 560 564 LockWindowUpdate(hwnd); 561 565 … … 630 634 if (ON_BOTTOM_BORDER(hittest)) newRect.bottom += dy; 631 635 632 //// if(!iconic && !DragFullWindows) draw_moving_frame( hdc, &sizingRect, thickframe, hittest, TRUE);633 634 636 /* determine the hit location */ 635 637 if (hittest >= HTLEFT && hittest <= HTBOTTOMRIGHT) … … 660 662 draw_moving_frame( hdc, &newRect, thickframe, hittest, TRUE ); 661 663 else { 662 /* To avoid any deadlocks, all the locks on the windows663 structures must be suspended before the SetWindowPos */ 664 // iWndsLocks = WIN_SuspendWndsLock(); 664 if (!fMove) { 665 LockWindowUpdate(hwnd); 666 } 665 667 SetWindowPos( hwnd, 0, newRect.left, newRect.top, 666 668 newRect.right - newRect.left, 667 newRect.bottom - newRect.top, 669 newRect.bottom - newRect.top, 668 670 ((hittest == HTCAPTION ) ? SWP_NOSIZE : 0 ) | 669 671 ((fControl) ? (SWP_NOACTIVATE|SWP_NOZORDER) : 0)); 670 // WIN_RestoreWndsLock(iWndsLocks); 672 if (!fMove) { 673 LockWindowUpdate(NULL); 674 } 671 675 } 672 676 } … … 676 680 677 681 //Enable window update 678 if(!DragFullWindows )682 if(!DragFullWindows || fMove) 679 683 LockWindowUpdate(NULL); 680 684 … … 692 696 draw_moving_frame( hdc, &lastsizingRect, thickframe, hittest, FALSE); 693 697 694 ReleaseDC( parent, hdc ); 695 696 // wine_tsx11_lock(); 697 // XUngrabPointer( display, CurrentTime ); 698 // if (grab) 699 // { 700 // XSync( display, False ); 701 // XUngrabServer( display ); 702 // XSync( display, False ); 703 // gdi_display = old_gdi_display; 704 // } 705 // wine_tsx11_unlock(); 698 if(hdc) ReleaseDC( parent, hdc ); 706 699 707 700 if (HOOK_CallHooksA( WH_CBT, HCBT_MOVESIZE, (WPARAM)hwnd, (LPARAM)&lastsizingRect )) moved = FALSE; … … 713 706 if (moved) 714 707 { 715 /* To avoid any deadlocks, all the locks on the windows716 structures must be suspended before the SetWindowPos */717 // iWndsLocks = WIN_SuspendWndsLock();718 719 708 /* if the moving/resizing isn't canceled call SetWindowPos 720 709 * with the new position or the new size of the window … … 739 728 ( hittest == HTCAPTION ) ? SWP_NOSIZE : 0 ); 740 729 } 741 742 // WIN_RestoreWndsLock(iWndsLocks);743 730 } 744 731 else
Note:
See TracChangeset
for help on using the changeset viewer.