From 63fbd8d8ece5f49f7f9b8cac29b9aba73d5d7d23 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 5 Jul 2017 14:10:36 -0400 Subject: Remove PNM_SCROLLWINDOW and replace with direct method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL removes PNM_SCROLLWINDOW from OnNotify and replaces it with a call to ScrollWindowVerticallyTo. Change-Id: I62f6da60cdcd4926b0c74b980b3855a28a834411 Reviewed-on: https://pdfium-review.googlesource.com/7253 Commit-Queue: dsinclair Reviewed-by: Nicolás Peña --- fpdfsdk/pdfwindow/cpwl_wnd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.h') diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.h b/fpdfsdk/pdfwindow/cpwl_wnd.h index c9c4130725..ab4cf7ae77 100644 --- a/fpdfsdk/pdfwindow/cpwl_wnd.h +++ b/fpdfsdk/pdfwindow/cpwl_wnd.h @@ -74,7 +74,6 @@ struct PWL_SCROLL_INFO; #define PRES_TEXTOVERFLOW 0x0400L // notification messages -#define PNM_SCROLLWINDOW 4 #define PNM_LBUTTONDOWN 5 #define PNM_LBUTTONUP 6 #define PNM_MOUSEMOVE 7 @@ -221,6 +220,7 @@ class CPWL_Wnd : public CPWL_TimerHandler { intptr_t lParam = 0); virtual void SetScrollInfo(const PWL_SCROLL_INFO& info); virtual void SetScrollPosition(float pos); + virtual void ScrollWindowVertically(float pos); virtual void SetFocus(); virtual void KillFocus(); virtual void SetCursor(); -- cgit v1.2.3