Changeset 17 for trunk/LocalPlayer/PVSB.pas
- Timestamp:
- Jan 8, 2017, 11:21:02 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/PVSB.pas
r9 r17 1 {$INCLUDE switches.pas}1 {$INCLUDE Switches.pas} 2 2 unit PVSB; 3 3 … … 5 5 6 6 uses 7 Windows,LCLIntf, LCLType, LMessages, Messages, SysUtils;7 LCLIntf, LCLType, LMessages, Messages, SysUtils; 8 8 9 9 type … … 28 28 begin 29 29 inc(Count); 30 {$IFDEF WINDOWS} 30 31 sb.h := CreateWindowEx(0, 'SCROLLBAR', pchar('PVSB' + IntToStr(Count)), 31 32 SBS_VERT or WS_CHILD or SBS_RIGHTALIGN, x1 - 100, y0, 100, y1 - y0, 32 33 Handle, 0, 0, nil); 34 {$ENDIF} 33 35 sb.si.cbSize := 28; 34 36 end; … … 60 62 else 61 63 begin 62 if m.wParamLoin [SB_THUMBPOSITION, SB_THUMBTRACK] then64 if (m.wParam and $ffff) in [SB_THUMBPOSITION, SB_THUMBTRACK] then 63 65 begin 64 result := m.wParamHi<> npos;65 npos := m.wParamHi;66 result := ((m.wParam shr 16) and $ffff) <> npos; 67 npos := (m.wParam shr 16) and $ffff; 66 68 end 67 69 else 68 70 begin 69 case m.wParamLoof71 case (m.wParam and $ffff) of 70 72 SB_LINEUP: 71 73 NewPos := npos - 1; … … 84 86 NewPos := nMax - integer(nPage) + 1; 85 87 result := NewPos <> npos; 86 if (NewPos <> npos) or ( m.wParamLo= SB_ENDSCROLL) then88 if (NewPos <> npos) or ((m.wParam and $ffff) = SB_ENDSCROLL) then 87 89 begin 88 90 npos := NewPos;
Note:
See TracChangeset
for help on using the changeset viewer.