66 UINT uLinesToScroll =
state->uLinesToScroll;
67 INT zDelta = GET_WHEEL_DELTA_WPARAM(
wParam);
75 nPage =
state->nPageY;
78 zDelta +=
state->iWheelCarryoverY;
84 nPage =
state->nPageX;
87 zDelta +=
state->iWheelCarryoverX;
101 if (uLinesToScroll > nPage)
102 uLinesToScroll = nPage;
104 else if (uLinesToScroll == 0)
151 pCurrent = &
state->CurrentX;
152 Maximum =
state->MaxX;
156 pCurrent = &
state->CurrentY;
157 Maximum =
state->MaxY;
176 NewPos = si.
nPos - iDelta;
182 NewPos = si.
nPos + iDelta;
217 NewPos =
min(
max(NewPos, 0), Maximum);
219 if (si.
nPos == NewPos)
222 OldX =
state->CurrentX;
223 OldY =
state->CurrentY;
227 OldX -
state->CurrentX,
228 OldY -
state->CurrentY,
248 state->uLinesToScroll = 3;
252 state->uLinesToScroll = uLinesToScroll;
283 si.
nMax = nMaxHeight;
CLIPBOARD_GLOBALS Globals
LRESULT SendClipboardOwnerMessage(IN BOOL bUnicode, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
#define WM_VSCROLLCLIPBOARD
#define WM_HSCROLLCLIPBOARD
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define SIF_DISABLENOSCROLL
BOOL WINAPI UpdateWindow(_In_ HWND)
BOOL WINAPI SetRectEmpty(_Out_ LPRECT)
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)
#define SystemParametersInfo
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)
int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT)
SHORT WINAPI GetKeyState(_In_ int)