- Timestamp:
- Oct 24, 2001, 1:21:18 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/wintrack.cpp
r7171 r7189 22 22 #include "win32wbase.h" 23 23 #include "hook.h" 24 #include "pmwindow.h" 24 25 25 26 #define ON_LEFT_BORDER(hit) \ … … 441 442 DWORD dwPoint = GetMessagePos (); 442 443 BOOL DragFullWindows = FALSE; 444 BOOL fControl = FALSE; 443 445 BOOL grab; 444 446 int iWndsLocks; … … 454 456 // if (IsZoomed(hwnd) || !IsWindowVisible(hwnd) || (exstyle & WS_EX_MANAGED)) return; 455 457 if (IsZoomed(hwnd) || !IsWindowVisible(hwnd)) return; 458 459 if(fOS2Look) { 460 fControl = GetAsyncKeyState(VK_CONTROL); 461 if(DragFullWindows && !fControl) { 462 //Bring window to top and activate it 463 SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); 464 } 465 } 456 466 457 467 if ((wParam & 0xfff0) == SC_MOVE) … … 645 655 newRect.right - newRect.left, 646 656 newRect.bottom - newRect.top, 647 ( hittest == HTCAPTION ) ? SWP_NOSIZE : 0 ); 657 ((hittest == HTCAPTION ) ? SWP_NOSIZE : 0 ) | 658 ((fControl) ? (SWP_NOACTIVATE|SWP_NOZORDER) : 0)); 648 659 // WIN_RestoreWndsLock(iWndsLocks); 649 660 } … … 705 716 lastsizingRect.right - lastsizingRect.left, 706 717 lastsizingRect.bottom - lastsizingRect.top, 707 ( hittest == HTCAPTION ) ? SWP_NOSIZE : 0 ); 718 ((hittest == HTCAPTION ) ? SWP_NOSIZE : 0 ) | 719 ((fControl) ? (SWP_NOACTIVATE|SWP_NOZORDER) : 0)); 708 720 } 709 721 else 710 722 { /* restore previous size/position */ 723 //SvL: TODO: should really restore z-order & activation here 711 724 if(DragFullWindows) 712 725 SetWindowPos( hwnd, 0, origRect.left, origRect.top, … … 718 731 // WIN_RestoreWndsLock(iWndsLocks); 719 732 } 733 else 734 if (!((msg.message == WM_KEYDOWN) && (msg.wParam == VK_ESCAPE)) ) { 735 //if action wasn't cancelled, ctrl wasn't pressed and we didn't 736 //activate the window before (!DragFullWindows), then activate 737 //and bring it to the top now 738 if(!fControl && !DragFullWindows) { 739 //Bring window to top and activate it 740 SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); 741 } 742 } 720 743 721 744 if (IsIconic(hwnd))
Note:
See TracChangeset
for help on using the changeset viewer.