- Timestamp:
 - May 5, 2000, 8:23:07 PM (26 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/src/user32/winmouse.cpp (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/user32/winmouse.cpp
r3488 r3499 1 /* $Id: winmouse.cpp,v 1. 9 2000-05-03 18:35:56sandervl Exp $ */1 /* $Id: winmouse.cpp,v 1.10 2000-05-05 18:23:07 sandervl Exp $ */ 2 2 /* 3 3 * Mouse handler for DINPUT … … 117 117 //****************************************************************************** 118 118 //****************************************************************************** 119 HWND WIN32API SetCapture( HWND hwnd)119 HWND WIN32API SetCapture(HWND hwnd) 120 120 { 121 121 HWND hwndPrev = GetCapture(); 122 BOOL rc; 122 123 123 124 if(hwnd == 0) { … … 125 126 return hwndPrev; 126 127 } 127 OSLibWinSetCapture(Win32Window::Win32ToOS2Handle(hwnd)); 128 dprintf(("USER32: SetCapture %x (prev %x)", hwnd, hwndPrev)); 128 if(hwndPrev != NULL) { 129 //SvL: WinSetCapture returns an error if mouse is already captured 130 ReleaseCapture(); 131 } 132 rc = OSLibWinSetCapture(Win32Window::Win32ToOS2Handle(hwnd)); 133 dprintf(("USER32: SetCapture %x (prev %x) returned %d", hwnd, hwndPrev, rc)); 129 134 if(hwndPrev) { 130 135 SendMessageA(hwndPrev, WM_CAPTURECHANGED, 0L, hwnd); 131 136 } 132 137 return hwndPrev; 133 // return 0;134 138 } 135 139 //******************************************************************************  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  