[sword-svn] r113 - trunk/src/SwordReader_GUI/SRFramework
dtrotzjr at www.crosswire.org
dtrotzjr at www.crosswire.org
Sun Apr 6 17:08:34 MST 2008
Author: dtrotzjr
Date: 2008-04-06 17:08:33 -0700 (Sun, 06 Apr 2008)
New Revision: 113
Modified:
trunk/src/SwordReader_GUI/SRFramework/SRWnd.cpp
trunk/src/SwordReader_GUI/SRFramework/SRWnd.h
Log:
Finished the virtual functions that deal with window messages.
Modified: trunk/src/SwordReader_GUI/SRFramework/SRWnd.cpp
===================================================================
--- trunk/src/SwordReader_GUI/SRFramework/SRWnd.cpp 2008-04-03 03:45:55 UTC (rev 112)
+++ trunk/src/SwordReader_GUI/SRFramework/SRWnd.cpp 2008-04-07 00:08:33 UTC (rev 113)
@@ -104,14 +104,7 @@
return OnSetFocus(hWnd, wMsg, wParam, lParam);
case WM_KILLFOCUS:
return OnKillFocus(hWnd, wMsg, wParam, lParam);
- case WM_SETREDRAW:
- return OnSetRedraw(hWnd, wMsg, wParam, lParam);
- case WM_SETTEXT:
- return OnSetText(hWnd, wMsg, wParam, lParam);
- case WM_GETTEXT:
- return OnGetText(hWnd, wMsg, wParam, lParam);
- case WM_GETTEXTLENGTH:
- return OnGetTextLength(hWnd, wMsg, wParam, lParam);
+ //...
case WM_PAINT:
return OnPaint(hWnd, wMsg, wParam, lParam);
case WM_ERASEBKGND:
Modified: trunk/src/SwordReader_GUI/SRFramework/SRWnd.h
===================================================================
--- trunk/src/SwordReader_GUI/SRFramework/SRWnd.h 2008-04-03 03:45:55 UTC (rev 112)
+++ trunk/src/SwordReader_GUI/SRFramework/SRWnd.h 2008-04-07 00:08:33 UTC (rev 113)
@@ -62,11 +62,6 @@
virtual LRESULT OnKillFocus(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnKillFocus((HWND)wParam); }
virtual BOOL OnKillFocus(HWND hNewWnd) { return FALSE; }
- virtual LRESULT OnSetRedraw(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnSetText(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnGetText(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnGetTextLength(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
-
virtual LRESULT OnPaint(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnPaint(); }
virtual BOOL OnPaint() { return FALSE; }
@@ -76,44 +71,121 @@
virtual LRESULT OnSetCursor(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnSetCursor((HWND) wParam, LOWORD(lParam), HIWORD(lParam)); }
virtual BOOL OnSetCursor(HWND hWnd, UINT nHitTest, UINT message) { return FALSE; }
- virtual LRESULT OnNotify(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnHelp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnKeyDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnKeyUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnDeadChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnSysKeyDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnSysKeyUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnSysChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnSysDeadChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnInitDialog(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnSysCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnTimer(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnHScroll(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnVScroll(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnInitMenuPopup(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnMenuChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnMouseMove(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnLButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnLButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnLButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnRButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnRButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnRButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnMButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnMButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnMButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnCut(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnCopy(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnPaste(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnClear(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnUndo(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnHibernate(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnCreate(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnDestroy(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnClose(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
- virtual LRESULT OnQuit(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
+ virtual LRESULT OnNotify(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnNotify((int) wParam, (LPNMHDR) lParam); }
+ virtual BOOL OnNotify(int idCtrl, LPNMHDR pnmh) {return FALSE; }
+
+ virtual LRESULT OnHelp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnHelp(); }
+ virtual BOOL OnHelp() { return FALSE; }
+
+ virtual LRESULT OnKeyDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnKeyDown((UINT)wParam, LOWORD(lParam), HIWORD(lParam)); }
+ virtual BOOL OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; }
+
+ virtual LRESULT OnKeyUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnKeyUp((UINT)wParam, LOWORD(lParam), HIWORD(lParam)); }
+ virtual BOOL OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; }
+
+ virtual LRESULT OnChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnChar((UINT)wParam, LOWORD(lParam), HIWORD(lParam)); }
+ virtual BOOL OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; }
+
+ virtual LRESULT OnDeadChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnDeadChar((UINT)wParam, LOWORD(lParam), HIWORD(lParam)); }
+ virtual BOOL OnDeadChar(UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; }
+
+ virtual LRESULT OnSysKeyDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnSysKeyDown((UINT)wParam, LOWORD(lParam), HIWORD(lParam)); }
+ virtual BOOL OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; }
+
+ virtual LRESULT OnSysKeyUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnKeyUp((UINT)wParam, LOWORD(lParam), HIWORD(lParam)); }
+ virtual BOOL OnSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; }
+
+ virtual LRESULT OnSysChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnSysChar((UINT)wParam, LOWORD(lParam), HIWORD(lParam)); }
+ virtual BOOL OnSysChar(UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; }
+
+ virtual LRESULT OnSysDeadChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnSysDeadChar((UINT)wParam, LOWORD(lParam), HIWORD(lParam)); }
+ virtual BOOL OnSysDeadChar(UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; }
+
+ virtual LRESULT OnInitDialog(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnInitDialog((HWND)wParam, lParam); }
+ virtual BOOL OnInitDialog(HWND wParam, LPARAM lParam) { return FALSE; }
+
+ virtual LRESULT OnCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnCommand(HIWORD(wParam) , LOWORD(wParam), (HWND) lParam); }
+ virtual BOOL OnCommand(WORD wNotifyCode, WORD wID, HWND hWndCtl) { return FALSE; }
+
+ virtual LRESULT OnSysCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnSysCommand((UINT)wParam, (INT) LOWORD(lParam), (INT) HIWORD(lParam)); }
+ virtual BOOL OnSysCommand(UINT uCmdType, INT xPos, INT yPos) { return FALSE; }
+
+ virtual LRESULT OnTimer(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnTimer((WORD)wParam, (TIMERPROC *)lParam); }
+ virtual BOOL OnTimer(WORD wTimerID, TIMERPROC * lParam) { return FALSE; }
+
+ virtual LRESULT OnHScroll(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnHScroll((INT) LOWORD(wParam), (INT) HIWORD(wParam), (HWND) lParam); }
+ virtual BOOL OnHScroll(INT nScrollCode, INT nPos, HWND hwndScrollBar) { return FALSE; }
+
+ virtual LRESULT OnVScroll(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnVScroll((INT) LOWORD(wParam), (INT) HIWORD(wParam), (HWND) lParam); }
+ virtual BOOL OnVScroll(INT nScrollCode, INT nPos, HWND hwndScrollBar) { return FALSE; }
+
+
+ virtual LRESULT OnInitMenuPopup(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnInitMenuPopup((HMENU) wParam, (UINT) LOWORD(lParam), (BOOL) HIWORD(lParam)); }
+ virtual BOOL OnInitMenuPopup(HMENU hmenuPopup, UINT uPos, BOOL fSystemMenu) { return FALSE; }
+
+ 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 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 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 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 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 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 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 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 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 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 BOOL OnMButtonDblClk(WORD fwKeys, INT xPos, INT yPos) { return FALSE; }
+
+ virtual LRESULT OnCut(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnCut(); }
+ virtual BOOL OnCut() { return FALSE; }
+
+ virtual LRESULT OnCopy(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnCopy(); }
+ virtual BOOL OnCopy() { return FALSE; }
+
+ virtual LRESULT OnPaste(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnPaste(); }
+ virtual BOOL OnPaste() { return FALSE; }
+
+ virtual LRESULT OnClear(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnClear(); }
+ virtual BOOL OnClear() { return FALSE; }
+
+ virtual LRESULT OnUndo(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnUndo(); }
+ virtual BOOL OnUndo() { return FALSE; }
+
+ virtual LRESULT OnHibernate(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnHibernate(); }
+ virtual BOOL OnHibernate() { return FALSE; }
+
+ virtual LRESULT OnCreate(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnCreate((LPCREATESTRUCT) lParam); }
+ virtual BOOL OnCreate(LPCREATESTRUCT lpcs) { return FALSE; }
+
+ virtual LRESULT OnDestroy(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnDestroy(); }
+ virtual BOOL OnDestroy() { return FALSE; }
+
+ virtual LRESULT OnClose(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnClose(); }
+ virtual BOOL OnClose() { return FALSE; }
+
+ virtual LRESULT OnQuit(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return OnQuit((INT)wParam); }
+ virtual BOOL OnQuit(INT nExitCode) { return FALSE; }
+
protected:
virtual BOOL Register() = 0;
More information about the sword-cvs
mailing list