Changeset 7028 for trunk/src/user32/winmouse.cpp
- Timestamp:
- Oct 12, 2001, 9:05:15 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winmouse.cpp
r6972 r7028 1 /* $Id: winmouse.cpp,v 1.1 8 2001-10-09 05:18:05 phaller Exp $ */1 /* $Id: winmouse.cpp,v 1.19 2001-10-12 07:05:15 phaller Exp $ */ 2 2 /* 3 3 * Mouse handler for DINPUT … … 125 125 //****************************************************************************** 126 126 //****************************************************************************** 127 128 // capture handle "cache" 129 static HWND hwndWin32Capture = 0; 130 127 131 ODINFUNCTION0(HWND, GetCapture) 128 132 { 129 return OS2ToWin32Handle(OSLibWinQueryCapture()); 133 if (0 == hwndWin32Capture) 134 hwndWin32Capture = OS2ToWin32Handle(OSLibWinQueryCapture()); 135 136 return hwndWin32Capture; 130 137 } 131 138 //****************************************************************************** … … 136 143 HWND hwndPrev = GetCapture(); 137 144 BOOL rc; 138 145 146 // invalidate capture "cache" 147 hwndWin32Capture = 0; 148 139 149 if(hwnd == 0) 140 150 { … … 171 181 172 182 hwndPrev = GetCapture(); 183 184 // invalidate capture "cache" 185 hwndWin32Capture = 0; 186 173 187 ret = OSLibWinSetCapture(0); 174 188 if(hwndPrev)
Note:
See TracChangeset
for help on using the changeset viewer.