From 747395cee4edd42c7a40da61ed986f1c50950c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 12 Dec 2015 21:21:28 +0000 Subject: [PATCH] [CLIPBRD]: SVN failure again: for some reason this file was not added to the code when applying the patch. See r70331. CORE-10679 svn path=/trunk/; revision=70332 --- .../base/applications/clipbrd/scrollutils.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 reactos/base/applications/clipbrd/scrollutils.h diff --git a/reactos/base/applications/clipbrd/scrollutils.h b/reactos/base/applications/clipbrd/scrollutils.h new file mode 100644 index 00000000000..a7448f04dfc --- /dev/null +++ b/reactos/base/applications/clipbrd/scrollutils.h @@ -0,0 +1,21 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS Clipboard Viewer + * FILE: base/applications/clipbrd/scrollutils.h + * PURPOSE: Scrolling releated helper functions. + * PROGRAMMERS: Ricardo Hanke + */ + +typedef struct _SCROLLSTATE +{ + int CurrentX; + int CurrentY; + int MaxX; + int MaxY; +} SCROLLSTATE, *LPSCROLLSTATE; + +void HandleKeyboardScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); +void HandleHorizontalScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state); +void HandleVerticalScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state); +void UpdateWindowScrollState(HWND hWnd, HBITMAP hBmp, LPSCROLLSTATE lpState); +BOOL ScrollBlt(PAINTSTRUCT ps, HBITMAP hBmp, SCROLLSTATE state);