Changeset 22081 for branches/swt/src/user32/scroll.cpp
- Timestamp:
- Aug 23, 2014, 4:21:44 PM (11 years ago)
- File:
-
- 1 edited
-
branches/swt/src/user32/scroll.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
