From 9ec2fdcbf3c6a7be52e714c4086fa8e09082b2d3 Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 21 Aug 2006 14:34:59 +0000 Subject: (svn r6036) -Codechange: do not handle SCROLL in a central function, but let windows handle them theirself. Added WE_SCROLL for this. --- window.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'window.h') diff --git a/window.h b/window.h index 6dff1d967..9bdfc1bce 100644 --- a/window.h +++ b/window.h @@ -136,6 +136,11 @@ union WindowEvent { uint wparam; // additional message-specific information uint lparam; // additional message-specific information } message; + + struct { + byte event; + Point delta; // delta position against position of last call + } scroll; }; enum WindowKeyCodes { @@ -506,7 +511,8 @@ enum WindowEvents { WE_MOUSEOVER = 20, WE_ON_EDIT_TEXT_CANCEL = 21, WE_RESIZE = 22, - WE_MESSAGE = 23 + WE_MESSAGE = 23, + WE_SCROLL = 24, }; -- cgit v1.2.3-54-g00ecf