Changeset 22081 for branches/swt/src
- Timestamp:
- Aug 23, 2014, 4:21:44 PM (11 years ago)
- Location:
- branches/swt/src
- Files:
-
- 2 edited
-
kernel32/version.cpp (modified) (7 diffs)
-
user32/scroll.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/swt/src/kernel32/version.cpp
r22031 r22081 75 75 ODINNT_VERSION, 76 76 { 77 sizeof(OSVERSIONINFOA), ODINNT_MAJOR_VERSION, ODINNT_MINOR_VERSION, 77 sizeof(OSVERSIONINFOA), ODINNT_MAJOR_VERSION, ODINNT_MINOR_VERSION, 78 78 ODINNT_BUILD_NR, VER_PLATFORM_WIN32_NT, ODINNT_CSDVERSION, 79 79 6, 0, 0, 0 … … 117 117 //****************************************************************************** 118 118 //****************************************************************************** 119 void WIN32API OdinSetVersion(ULONG version) 119 void WIN32API OdinSetVersion(ULONG version) 120 120 { 121 121 switch(version) { … … 127 127 case WINVERSION_WINXPSP3: 128 128 break; 129 default: 129 default: 130 130 DebugInt3(); 131 131 return; … … 139 139 char szVersion[16]; 140 140 141 if(PROFILE_GetOdinIniString(PROFILE_WINVERSION_SECTION, PROFILE_WINVERSION_KEY, 142 "", szVersion, sizeof(szVersion)-1) > 1) 141 if(PROFILE_GetOdinIniString(PROFILE_WINVERSION_SECTION, PROFILE_WINVERSION_KEY, 142 "", szVersion, sizeof(szVersion)-1) > 1) 143 143 { 144 144 if(!stricmp(szVersion, PROFILE_WINVERSION_WIN98)) { … … 201 201 dprintf(("szCSDVersion %s", lpVersionInformation->szCSDVersion)); 202 202 203 if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA)) 203 if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA)) 204 204 {//Windows 2000 (and up) extension 205 205 LPOSVERSIONINFOEXA lpVersionExInformation = (LPOSVERSIONINFOEXA)lpVersionInformation; … … 207 207 lpVersionExInformation->wServicePackMajor = VersionData[winversion].getVersionEx.wServicePackMajor; 208 208 lpVersionExInformation->wServicePackMinor = VersionData[winversion].getVersionEx.wServicePackMinor; 209 /* 209 210 lpVersionExInformation->wReserved[0] = VersionData[winversion].getVersionEx.wReserved[0]; 210 211 lpVersionExInformation->wReserved[1] = VersionData[winversion].getVersionEx.wReserved[1]; 211 212 */ 213 ///-------------------------------------------------------------------[swt-os2] 214 lpVersionExInformation->wSuiteMask = VersionData[winversion].getVersionEx.wSuiteMask; 215 lpVersionExInformation->wProductType = VersionData[winversion].getVersionEx.wProductType; 216 lpVersionExInformation->wReserved = VersionData[winversion].getVersionEx.wReserved; 217 ///---------------------------------------------------------------------------- 218 212 219 dprintf(("service pack version %x.%x", lpVersionExInformation->wServicePackMajor, lpVersionExInformation->wServicePackMinor)); 213 220 } 214 221 215 222 SetLastError(ERROR_SUCCESS); 216 223 return(TRUE); … … 244 251 lstrcpyAtoW(lpVersionInformation->szCSDVersion, VersionData[winversion].getVersionEx.szCSDVersion); 245 252 246 if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXW)) 253 if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXW)) 247 254 {//Windows 2000 (and up) extension 248 255 LPOSVERSIONINFOEXW lpVersionExInformation = (LPOSVERSIONINFOEXW)lpVersionInformation; 249 256 250 257 lpVersionExInformation->wServicePackMajor = VersionData[winversion].getVersionEx.wServicePackMajor; 251 258 lpVersionExInformation->wServicePackMinor = VersionData[winversion].getVersionEx.wServicePackMinor; 259 /* 252 260 lpVersionExInformation->wReserved[0] = VersionData[winversion].getVersionEx.wReserved[0]; 253 261 lpVersionExInformation->wReserved[1] = VersionData[winversion].getVersionEx.wReserved[1]; 262 */ 263 ///-------------------------------------------------------------------[swt-os2] 264 lpVersionExInformation->wSuiteMask = VersionData[winversion].getVersionEx.wSuiteMask; 265 lpVersionExInformation->wProductType = VersionData[winversion].getVersionEx.wProductType; 266 lpVersionExInformation->wReserved = VersionData[winversion].getVersionEx.wReserved; 267 ///---------------------------------------------------------------------------- 254 268 } 255 269 SetLastError(ERROR_SUCCESS); -
branches/swt/src/user32/scroll.cpp
r10119 r22081 140 140 lprect->left--; 141 141 lprect->right++; 142 } 143 else 142 } 143 else 144 144 if (win32wnd->getStyle() & WS_VSCROLL) 145 145 lprect->right++; … … 164 164 lprect->top--; 165 165 lprect->bottom++; 166 } 167 else 166 } 167 else 168 168 if (win32wnd->getStyle() & WS_HSCROLL) 169 169 lprect->bottom++; … … 982 982 SCROLL_DrawMovingThumb(hdc, &rect, vertical, arrowSize, thumbSize); 983 983 #ifdef __WIN32OS2__ 984 //This message is sent in Windows when the user clicks on the 984 //This message is sent in Windows when the user clicks on the 985 985 //scroll thumb (even without moving) (NT4, SP6) 986 986 SendMessageA( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL, … … 1343 1343 infoPtr->Page = info->nPage; 1344 1344 action |= SA_SSI_REPAINT_INTERIOR; 1345 bChangeParams = TRUE; 1345 bChangeParams = TRUE; 1346 1346 } 1347 1347 } … … 1368 1368 infoPtr->MinVal = 0; 1369 1369 infoPtr->MaxVal = 0; 1370 bChangeParams = TRUE; 1370 bChangeParams = TRUE; 1371 1371 } 1372 1372 else … … 1378 1378 infoPtr->MinVal = info->nMin; 1379 1379 infoPtr->MaxVal = info->nMax; 1380 bChangeParams = TRUE; 1380 bChangeParams = TRUE; 1381 1381 } 1382 1382 } … … 1416 1416 new_flags = ESB_DISABLE_BOTH; 1417 1417 action |= SA_SSI_REFRESH; 1418 } 1419 else 1418 } 1419 else 1420 1420 if (nBar != SB_CTL && bChangeParams) 1421 1421 { … … 1424 1424 goto done; 1425 1425 } 1426 } 1426 } 1427 1427 else /* Show and enable scroll-bar */ 1428 1428 { … … 1587 1587 //testestset 1588 1588 static int nestlevel = 0; 1589 1589 1590 1590 //NOTE: This is an ugly workaround for an endless loop in CVP 1591 1591 // Need to make sure there isn't a better fix. 1592 if(++nestlevel == 1) 1592 if(++nestlevel == 1) 1593 1593 SetScrollInfo( hwnd, nBar, &info, bRedraw ); 1594 1594 nestlevel--; … … 1764 1764 SCROLL_GetScrollBarRect(hwnd,nBar,&psbi->rcScrollBar,&arrowSize,&psbi->dxyLineButton,&psbi->xyThumbTop); 1765 1765 psbi->xyThumbBottom = psbi->xyThumbTop+psbi->dxyLineButton; 1766 psbi->bogus = 0; //CB: undocumented! 1766 //~ psbi->bogus = 0; //CB: undocumented! 1767 ///-------------------------------------------------------------------[swt-os2] 1768 psbi->reserved = 0; //CB: undocumented! 1769 ///---------------------------------------------------------------------------- 1767 1770 psbi->rgstate[0] = IsWindowVisible(hwnd) ? STATE_SYSTEM_INVISIBLE:0; 1768 1771 psbi->rgstate[1] = psbi->rgstate[2] = psbi->rgstate[3] = psbi->rgstate[4] = psbi->rgstate[5] = psbi->rgstate[0]; //CB: todo
Note:
See TracChangeset
for help on using the changeset viewer.
