ReactOS
0.4.16-dev-329-g9223134
scrollutils.h
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Clipboard Viewer
3
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4
* PURPOSE: Scrolling related helper functions.
5
* COPYRIGHT: Copyright 2015-2018 Ricardo Hanke
6
* Copyright 2015-2018 Hermes Belusca-Maito
7
*/
8
9
#pragma once
10
11
typedef
struct
_SCROLLSTATE
12
{
13
UINT
uLinesToScroll
;
/* Number of lines to scroll on one wheel rotation movement (== one "click" == WHEEL_DELTA ticks) */
14
INT
iWheelCarryoverX
;
/* Unused wheel ticks (< WHEEL_DELTA) */
15
INT
iWheelCarryoverY
;
16
INT
nPageX
;
/* Number of lines per page */
17
INT
nPageY
;
18
INT
CurrentX
;
/* Current scrollbar position */
19
INT
CurrentY
;
20
INT
MaxX
;
/* Maximum scrollbar position */
21
INT
MaxY
;
22
INT
nMaxWidth
;
/* Maximum span of displayed data */
23
INT
nMaxHeight
;
24
}
SCROLLSTATE
, *
LPSCROLLSTATE
;
25
26
void
OnKeyScroll
(
HWND
hWnd
,
WPARAM
wParam
,
LPARAM
lParam
,
LPSCROLLSTATE
state
);
27
void
OnMouseScroll
(
HWND
hWnd
,
UINT
uMsg,
WPARAM
wParam
,
LPARAM
lParam
,
LPSCROLLSTATE
state
);
28
void
OnScroll
(
HWND
hWnd
,
INT
nBar,
WPARAM
wParam
,
INT
iDelta,
LPSCROLLSTATE
state
);
29
30
void
UpdateLinesToScroll
(
LPSCROLLSTATE
state
);
31
void
UpdateWindowScrollState
(
HWND
hWnd
,
INT
nMaxWidth,
INT
nMaxHeight,
LPSCROLLSTATE
lpState);
state
static int state
Definition:
maze.c:121
hWnd
HWND hWnd
Definition:
settings.c:17
wParam
WPARAM wParam
Definition:
combotst.c:138
lParam
LPARAM lParam
Definition:
combotst.c:139
void
Definition:
nsiface.idl:2307
UINT
unsigned int UINT
Definition:
ndis.h:50
UpdateLinesToScroll
void UpdateLinesToScroll(LPSCROLLSTATE state)
Definition:
scrollutils.c:241
UpdateWindowScrollState
void UpdateWindowScrollState(HWND hWnd, INT nMaxWidth, INT nMaxHeight, LPSCROLLSTATE lpState)
Definition:
scrollutils.c:256
OnKeyScroll
void OnKeyScroll(HWND hWnd, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state)
Definition:
scrollutils.c:11
OnScroll
void OnScroll(HWND hWnd, INT nBar, WPARAM wParam, INT iDelta, LPSCROLLSTATE state)
Definition:
scrollutils.c:124
LPSCROLLSTATE
struct _SCROLLSTATE * LPSCROLLSTATE
SCROLLSTATE
struct _SCROLLSTATE SCROLLSTATE
OnMouseScroll
void OnMouseScroll(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state)
Definition:
scrollutils.c:61
_SCROLLSTATE
Definition:
scrollutils.h:12
_SCROLLSTATE::nMaxWidth
INT nMaxWidth
Definition:
scrollutils.h:22
_SCROLLSTATE::uLinesToScroll
UINT uLinesToScroll
Definition:
scrollutils.h:13
_SCROLLSTATE::CurrentY
INT CurrentY
Definition:
scrollutils.h:19
_SCROLLSTATE::nPageX
INT nPageX
Definition:
scrollutils.h:16
_SCROLLSTATE::MaxX
INT MaxX
Definition:
scrollutils.h:20
_SCROLLSTATE::iWheelCarryoverX
INT iWheelCarryoverX
Definition:
scrollutils.h:14
_SCROLLSTATE::CurrentX
INT CurrentX
Definition:
scrollutils.h:18
_SCROLLSTATE::nPageY
INT nPageY
Definition:
scrollutils.h:17
_SCROLLSTATE::iWheelCarryoverY
INT iWheelCarryoverY
Definition:
scrollutils.h:15
_SCROLLSTATE::MaxY
INT MaxY
Definition:
scrollutils.h:21
_SCROLLSTATE::nMaxHeight
INT nMaxHeight
Definition:
scrollutils.h:23
INT
int32_t INT
Definition:
typedefs.h:58
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
base
applications
clipbrd
scrollutils.h
Generated on Sun Dec 8 2024 06:02:16 for ReactOS by
1.9.6