- Timestamp:
- Aug 2, 2009, 3:10:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/TextEditor_EventProc.cpp
r691 r770 162 162 case WM_MOUSEWHEEL: 163 163 int zDelta; 164 zDelta= (short) HIWORD(wParam);164 zDelta=GET_WHEEL_DELTA_WPARAM(wParam); 165 165 166 166 WndNum=GetWndNum(GetParent(hwnd)); … … 169 169 GetScrollInfo(hwnd,SB_VERT,&si); 170 170 171 i=0; 172 if(zDelta>=120){ 173 //上へスクロール 174 i=-3; 175 } 176 else if(zDelta<=-120){ 177 //下へスクロール 178 i=3; 179 } 171 UINT scrollLines; 172 SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, &scrollLines, 0); 173 i=zDelta*(int)scrollLines/-WHEEL_DELTA; 180 174 181 175 if(i){
Note:
See TracChangeset
for help on using the changeset viewer.