[sword-svn] r109 - trunk/src/SwordReader_GUI/SRFramework
dtrotzjr at www.crosswire.org
dtrotzjr at www.crosswire.org
Sun Mar 30 19:40:11 MST 2008
Author: dtrotzjr
Date: 2008-03-30 19:40:11 -0700 (Sun, 30 Mar 2008)
New Revision: 109
Modified:
trunk/src/SwordReader_GUI/SRFramework/SRWnd.cpp
trunk/src/SwordReader_GUI/SRFramework/SRWnd.h
Log:
Message Mapping changes.
Modified: trunk/src/SwordReader_GUI/SRFramework/SRWnd.cpp
===================================================================
--- trunk/src/SwordReader_GUI/SRFramework/SRWnd.cpp 2008-03-31 02:12:41 UTC (rev 108)
+++ trunk/src/SwordReader_GUI/SRFramework/SRWnd.cpp 2008-03-31 02:40:11 UTC (rev 109)
@@ -1,77 +1,6 @@
#include "SRWnd.h"
using namespace SRFramework;
-/* Idea taken from examples in Programming Windows CE - Douglas Boling */
-struct decodeUINT {
- UINT Code;
- LRESULT (CALLBACK SRWnd:: *Fxn)(HWND, UINT, WPARAM, LPARAM);
-};
-struct decodeCMD {
- UINT Code;
- LRESULT (SRWnd::* Fxn)(HWND, WORD, HWND, WORD);
-};
-
-// Message dispatch table for MainWindowProc
-decodeUINT MainMessages[] = {
- // As defined in winuser.h
- WM_MOVE, &SRWnd::OnMove,
- WM_SIZE, &SRWnd::OnSize,
- WM_ACTIVATE, &SRWnd::OnActivate,
- WM_SETFOCUS, &SRWnd::OnSetFocus,
- WM_KILLFOCUS, &SRWnd::OnKillFocus,
- WM_SETREDRAW, &SRWnd::OnSetRedraw,
- WM_SETTEXT, &SRWnd::OnSetText,
- WM_GETTEXT, &SRWnd::OnGetText,
- WM_GETTEXTLENGTH, &SRWnd::OnGetTextLength,
- WM_PAINT, &SRWnd::OnPaint,
- WM_ERASEBKGND, &SRWnd::OnEraseBackground,
- WM_SETCURSOR, &SRWnd::OnSetCursor,
- WM_NOTIFY, &SRWnd::OnNotify,
- WM_HELP, &SRWnd::OnHelp,
- WM_KEYFIRST, &SRWnd::OnKeyFirst,
- WM_KEYDOWN, &SRWnd::OnKeyDown,
- WM_KEYUP, &SRWnd::OnKeyUp,
- WM_CHAR, &SRWnd::OnChar,
- WM_DEADCHAR, &SRWnd::OnDeadChar,
- WM_SYSKEYDOWN, &SRWnd::OnSysKeyDown,
- WM_SYSKEYUP, &SRWnd::OnSysKeyUp,
- WM_SYSCHAR, &SRWnd::OnSysChar,
- WM_SYSDEADCHAR, &SRWnd::OnSysDeadChar,
- //...
- WM_INITDIALOG, &SRWnd::OnInitDialog,
- WM_COMMAND, &SRWnd::OnCommand,
- WM_SYSCOMMAND, &SRWnd::OnSysCommand,
- WM_TIMER, &SRWnd::OnTimer,
- WM_CLOSE, &SRWnd::OnClose,
- WM_HSCROLL, &SRWnd::OnHScroll,
- WM_VSCROLL, &SRWnd::OnVScroll,
- WM_INITMENUPOPUP, &SRWnd::OnInitMenuPopup,
- WM_MENUCHAR, &SRWnd::OnMenuChar,
- WM_MOUSEMOVE, &SRWnd::OnMouseMove,
- WM_LBUTTONDOWN, &SRWnd::OnLButtonDown,
- WM_LBUTTONUP, &SRWnd::OnLButtonUp,
- WM_LBUTTONDBLCLK, &SRWnd::OnLButtonDblClk,
- WM_RBUTTONDOWN, &SRWnd::OnRButtonDown,
- WM_RBUTTONUP, &SRWnd::OnRButtonUp,
- WM_RBUTTONDBLCLK, &SRWnd::OnRButtonDblClk,
- WM_MBUTTONDOWN, &SRWnd::OnMButtonDown,
- WM_MBUTTONUP, &SRWnd::OnMButtonUp,
- WM_MBUTTONDBLCLK, &SRWnd::OnMButtonDblClk,
- //...
- WM_CUT, &SRWnd::OnCut,
- WM_COPY, &SRWnd::OnCopy,
- WM_PASTE, &SRWnd::OnPaste,
- WM_CLEAR, &SRWnd::OnClear,
- WM_UNDO, &SRWnd::OnUndo,
- //...
- WM_HIBERNATE, &SRWnd::OnHibernate,
- //...
- WM_CREATE, &SRWnd::OnCreate,
- WM_DESTROY, &SRWnd::OnDestroy,
- WM_CLOSE, &SRWnd::OnClose,
- WM_QUIT, &SRWnd::OnQuit
-};
-
SRWnd::SRWnd()
{
@@ -144,17 +73,116 @@
return m_hWnd;
}
-
-LRESULT CALLBACK WndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
+LRESULT CALLBACK SRWnd::WndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
{
- INT i;
- //
- // Search message list to see if we need to handle this
- // message. If in list, call procedure.
- //
- for (i = 0; i < dim(MainMessages); i++) {
- if (wMsg == MainMessages[i].Code)
- return (*MainMessages[i].Fxn)(hWnd, wMsg, wParam, lParam);
+ switch(wMsg)
+ {
+ case WM_MOVE:
+ return OnMove(hWnd, wMsg, wParam, lParam);
+ case WM_SIZE:
+ return OnSize(hWnd, wMsg, wParam, lParam);
+ case WM_ACTIVATE:
+ return OnActivate(hWnd, wMsg, wParam, lParam);
+ case WM_SETFOCUS:
+ 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:
+ return OnEraseBackground(hWnd, wMsg, wParam, lParam);
+ case WM_SETCURSOR:
+ return OnSetCursor(hWnd, wMsg, wParam, lParam);
+ case WM_NOTIFY:
+ return OnNotify(hWnd, wMsg, wParam, lParam);
+ case WM_HELP:
+ return OnHelp(hWnd, wMsg, wParam, lParam);
+ case WM_KEYDOWN:
+ return OnKeyDown(hWnd, wMsg, wParam, lParam);
+ case WM_KEYUP:
+ return OnKeyUp(hWnd, wMsg, wParam, lParam);
+ case WM_CHAR:
+ return OnChar(hWnd, wMsg, wParam, lParam);
+ case WM_DEADCHAR:
+ return OnDeadChar(hWnd, wMsg, wParam, lParam);
+ case WM_SYSKEYDOWN:
+ return OnSysKeyDown(hWnd, wMsg, wParam, lParam);
+ case WM_SYSKEYUP:
+ return OnSysKeyUp(hWnd, wMsg, wParam, lParam);
+ case WM_SYSCHAR:
+ return OnSysChar(hWnd, wMsg, wParam, lParam);
+ case WM_SYSDEADCHAR:
+ return OnSysDeadChar(hWnd, wMsg, wParam, lParam);
+ //...
+ case WM_INITDIALOG:
+ return OnInitDialog(hWnd, wMsg, wParam, lParam);
+ case WM_COMMAND:
+ return OnCommand(hWnd, wMsg, wParam, lParam);
+ case WM_SYSCOMMAND:
+ return OnSysCommand(hWnd, wMsg, wParam, lParam);
+ case WM_TIMER:
+ return OnTimer(hWnd, wMsg, wParam, lParam);
+ case WM_HSCROLL:
+ return OnHScroll(hWnd, wMsg, wParam, lParam);
+ case WM_VSCROLL:
+ return OnVScroll(hWnd, wMsg, wParam, lParam);
+ case WM_INITMENUPOPUP:
+ return OnInitMenuPopup(hWnd, wMsg, wParam, lParam);
+ case WM_MENUCHAR:
+ return OnMenuChar(hWnd, wMsg, wParam, lParam);
+ case WM_MOUSEMOVE:
+ return OnMouseMove(hWnd, wMsg, wParam, lParam);
+ case WM_LBUTTONDOWN:
+ return OnLButtonDown(hWnd, wMsg, wParam, lParam);
+ case WM_LBUTTONUP:
+ return OnLButtonUp(hWnd, wMsg, wParam, lParam);
+ case WM_LBUTTONDBLCLK:
+ return OnLButtonDblClk(hWnd, wMsg, wParam, lParam);
+ case WM_RBUTTONDOWN:
+ return OnRButtonDown(hWnd, wMsg, wParam, lParam);
+ case WM_RBUTTONUP:
+ return OnRButtonUp(hWnd, wMsg, wParam, lParam);
+ case WM_RBUTTONDBLCLK:
+ return OnRButtonDblClk(hWnd, wMsg, wParam, lParam);
+ case WM_MBUTTONDOWN:
+ return OnMButtonDown(hWnd, wMsg, wParam, lParam);
+ case WM_MBUTTONUP:
+ return OnMButtonUp(hWnd, wMsg, wParam, lParam);
+ case WM_MBUTTONDBLCLK:
+ return OnMButtonDblClk(hWnd, wMsg, wParam, lParam);
+ //...
+ case WM_CUT:
+ return OnCut(hWnd, wMsg, wParam, lParam);
+ case WM_COPY:
+ return OnCopy(hWnd, wMsg, wParam, lParam);
+ case WM_PASTE:
+ return OnPaste(hWnd, wMsg, wParam, lParam);
+ case WM_CLEAR:
+ return OnClear(hWnd, wMsg, wParam, lParam);
+ case WM_UNDO:
+ return OnUndo(hWnd, wMsg, wParam, lParam);
+ //...
+ case WM_HIBERNATE:
+ return OnHibernate(hWnd, wMsg, wParam, lParam);
+ //...
+ case WM_CREATE:
+ return OnCreate(hWnd, wMsg, wParam, lParam);
+ case WM_DESTROY:
+ return OnDestroy(hWnd, wMsg, wParam, lParam);
+ case WM_CLOSE:
+ return OnClose(hWnd, wMsg, wParam, lParam);
+ case WM_QUIT:
+ return OnQuit(hWnd, wMsg, wParam, lParam);
+ default:
+ return DefWindowProc (hWnd, wMsg, wParam, lParam);
}
- return DefWindowProc (hWnd, wMsg, wParam, lParam);
-}
\ No newline at end of file
+ return FALSE; // Never happens.
+}
Modified: trunk/src/SwordReader_GUI/SRFramework/SRWnd.h
===================================================================
--- trunk/src/SwordReader_GUI/SRFramework/SRWnd.h 2008-03-31 02:12:41 UTC (rev 108)
+++ trunk/src/SwordReader_GUI/SRFramework/SRWnd.h 2008-03-31 02:40:11 UTC (rev 109)
@@ -47,70 +47,56 @@
virtual void MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE);
virtual void MoveWindow(LPCRECT lpRect,BOOL bRepaint = TRUE);
- virtual LRESULT CALLBACK OnMove(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSize(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnActivate(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSetFocus(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnKillFocus(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSetRedraw(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSetText(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnGetText(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnGetTextLength(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnPaint(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnEraseBackground(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSetCursor(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnNotify(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnHelp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnKeyFirst(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnKeyDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnKeyUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnDeadChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSysKeyDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSysKeyUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSysChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSysDeadChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnInitDialog(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnSysCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnTimer(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnHScroll(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnVScroll(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnInitMenuPopup(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnMenuChar(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnMouseMove(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnLButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnLButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnLButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnRButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnRButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnRButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnMButtonDown(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnMButtonUp(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnMButtonDblClk(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnCut(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnCopy(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnPaste(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnClear(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnUndo(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnHibernate(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnCreate(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnDestroy(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnClose(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual LRESULT CALLBACK OnQuit(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) {}
-
- /*
- virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnLButtonDown(WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnKeyDown(WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnCommand(UINT wMsg, WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnPaint(WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnCreate(WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnDestroy(WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnActivate(WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnSettingChange(WPARAM wParam, LPARAM lParam) {}
- virtual BOOL OnSize(WPARAM wParam, LPARAM lParam) {}
- */
+ virtual LRESULT OnMove(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
+ virtual LRESULT OnSize(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
+ virtual LRESULT OnActivate(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
+ virtual LRESULT OnSetFocus(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
+ virtual LRESULT OnKillFocus(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { 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 FALSE; }
+ virtual LRESULT OnEraseBackground(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { return FALSE; }
+ virtual LRESULT OnSetCursor(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { 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; }
protected:
HWND m_hWnd;
// These typically are set by the subclass' constructor.
@@ -130,9 +116,7 @@
HMENU hMenu,
HINSTANCE hInstance);
HWND GetWindowHandle() const;
-
-
}; // END OF SRWnd Class...
}
More information about the sword-cvs
mailing list