[sword-svn] r198 - trunk/src/SwordReader_GUI/SRFramework

dtrotzjr at crosswire.org dtrotzjr at crosswire.org
Fri Jan 30 14:37:51 MST 2009


Author: dtrotzjr
Date: 2009-01-30 14:37:51 -0700 (Fri, 30 Jan 2009)
New Revision: 198

Modified:
   trunk/src/SwordReader_GUI/SRFramework/SRWnd.h
Log:
Fixed small bug that would erroneously discard the sign of a mouse event. This effected mouse move events when the mouse moved outside the current window.

Modified: trunk/src/SwordReader_GUI/SRFramework/SRWnd.h
===================================================================
--- trunk/src/SwordReader_GUI/SRFramework/SRWnd.h	2009-01-07 04:01:30 UTC (rev 197)
+++ trunk/src/SwordReader_GUI/SRFramework/SRWnd.h	2009-01-30 21:37:51 UTC (rev 198)
@@ -129,34 +129,34 @@
         virtual LRESULT OnMenuChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMenuChar((CHAR)LOWORD(wParam), (UINT)HIWORD(wParam), (HMENU)lParam); }
         virtual BOOL OnMenuChar(CHAR chUser, UINT fuFlag, HMENU hmenu) { return FALSE; }
 
-        virtual LRESULT OnMouseMove(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMouseMove(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnMouseMove(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMouseMove(wParam, (SHORT)LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnMouseMove(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
 
-        virtual LRESULT OnLButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnLButtonDown(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnLButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnLButtonDown(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnLButtonDown(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
 
-        virtual LRESULT OnLButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnLButtonUp(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnLButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnLButtonUp(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnLButtonUp(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
         
-        virtual LRESULT OnLButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnLButtonDblClk(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnLButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnLButtonDblClk(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnLButtonDblClk(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
 
-        virtual LRESULT OnRButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return  OnRButtonDown(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnRButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return  OnRButtonDown(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnRButtonDown(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
         
-        virtual LRESULT OnRButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return   OnRButtonUp(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnRButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return   OnRButtonUp(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnRButtonUp(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
         
-        virtual LRESULT OnRButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return  OnRButtonDblClk(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnRButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return  OnRButtonDblClk(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnRButtonDblClk(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
 
-        virtual LRESULT OnMButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMButtonDown(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnMButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMButtonDown(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnMButtonDown(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
 
-        virtual LRESULT OnMButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMButtonUp(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnMButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMButtonUp(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnMButtonUp(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
 
-        virtual LRESULT OnMButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMButtonDblClk(wParam, (INT) LOWORD(lParam), (INT)HIWORD(lParam)); }
+        virtual LRESULT OnMButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnMButtonDblClk(wParam, (SHORT) LOWORD(lParam), (SHORT)HIWORD(lParam)); }
         virtual BOOL OnMButtonDblClk(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
         
         virtual LRESULT OnCut(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnCut(); }




More information about the sword-cvs mailing list