[CLASS2]
[reactos.git] / base / applications / clipbrd / scrollutils.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Clipboard Viewer
4 * FILE: base/applications/clipbrd/scrollutils.h
5 * PURPOSE: Scrolling related helper functions.
6 * PROGRAMMERS: Ricardo Hanke
7 */
8
9 typedef struct _SCROLLSTATE
10 {
11 int CurrentX;
12 int CurrentY;
13 int MaxX;
14 int MaxY;
15 } SCROLLSTATE, *LPSCROLLSTATE;
16
17 void HandleKeyboardScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
18 void HandleMouseScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state);
19 void HandleHorizontalScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state);
20 void HandleVerticalScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state);
21 void UpdateWindowScrollState(HWND hWnd, HBITMAP hBmp, LPSCROLLSTATE lpState);
22 BOOL ScrollBlt(PAINTSTRUCT ps, HBITMAP hBmp, SCROLLSTATE state);