diff options
Diffstat (limited to 'CPP/Windows/Control/Window2.h')
-rw-r--r-- | CPP/Windows/Control/Window2.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/CPP/Windows/Control/Window2.h b/CPP/Windows/Control/Window2.h index 7ac580c..ebb5979 100644 --- a/CPP/Windows/Control/Window2.h +++ b/CPP/Windows/Control/Window2.h | |||
@@ -1,7 +1,7 @@ | |||
1 | // Windows/Control/Window2.h | 1 | // Windows/Control/Window2.h |
2 | 2 | ||
3 | #ifndef __WINDOWS_CONTROL_WINDOW2_H | 3 | #ifndef ZIP7_INC_WINDOWS_CONTROL_WINDOW2_H |
4 | #define __WINDOWS_CONTROL_WINDOW2_H | 4 | #define ZIP7_INC_WINDOWS_CONTROL_WINDOW2_H |
5 | 5 | ||
6 | #include "../Window.h" | 6 | #include "../Window.h" |
7 | 7 | ||
@@ -10,10 +10,12 @@ namespace NControl { | |||
10 | 10 | ||
11 | class CWindow2: public CWindow | 11 | class CWindow2: public CWindow |
12 | { | 12 | { |
13 | // Z7_CLASS_NO_COPY(CWindow2) | ||
14 | |||
13 | LRESULT DefProc(UINT message, WPARAM wParam, LPARAM lParam); | 15 | LRESULT DefProc(UINT message, WPARAM wParam, LPARAM lParam); |
14 | public: | 16 | public: |
15 | CWindow2(HWND newWindow = NULL): CWindow(newWindow){}; | 17 | CWindow2(HWND newWindow = NULL): CWindow(newWindow) {} |
16 | virtual ~CWindow2() {}; | 18 | virtual ~CWindow2() {} |
17 | 19 | ||
18 | bool CreateEx(DWORD exStyle, LPCTSTR className, LPCTSTR windowName, | 20 | bool CreateEx(DWORD exStyle, LPCTSTR className, LPCTSTR windowName, |
19 | DWORD style, int x, int y, int width, int height, | 21 | DWORD style, int x, int y, int width, int height, |
@@ -28,8 +30,8 @@ public: | |||
28 | virtual LRESULT OnMessage(UINT message, WPARAM wParam, LPARAM lParam); | 30 | virtual LRESULT OnMessage(UINT message, WPARAM wParam, LPARAM lParam); |
29 | virtual bool OnCreate(CREATESTRUCT * /* createStruct */) { return true; } | 31 | virtual bool OnCreate(CREATESTRUCT * /* createStruct */) { return true; } |
30 | // virtual LRESULT OnCommand(WPARAM wParam, LPARAM lParam); | 32 | // virtual LRESULT OnCommand(WPARAM wParam, LPARAM lParam); |
31 | virtual bool OnCommand(WPARAM wParam, LPARAM lParam, LRESULT &result); | 33 | // bool OnCommand2(WPARAM wParam, LPARAM lParam, LRESULT &result); |
32 | virtual bool OnCommand(int code, int itemID, LPARAM lParam, LRESULT &result); | 34 | virtual bool OnCommand(unsigned code, unsigned itemID, LPARAM lParam, LRESULT &result); |
33 | virtual bool OnSize(WPARAM /* wParam */, int /* xSize */, int /* ySize */) { return false; } | 35 | virtual bool OnSize(WPARAM /* wParam */, int /* xSize */, int /* ySize */) { return false; } |
34 | virtual bool OnNotify(UINT /* controlID */, LPNMHDR /* lParam */, LRESULT & /* result */) { return false; } | 36 | virtual bool OnNotify(UINT /* controlID */, LPNMHDR /* lParam */, LRESULT & /* result */) { return false; } |
35 | virtual void OnDestroy() { PostQuitMessage(0); } | 37 | virtual void OnDestroy() { PostQuitMessage(0); } |
@@ -37,7 +39,7 @@ public: | |||
37 | /* | 39 | /* |
38 | virtual LRESULT OnHelp(LPHELPINFO helpInfo) { OnHelp(); } | 40 | virtual LRESULT OnHelp(LPHELPINFO helpInfo) { OnHelp(); } |
39 | virtual LRESULT OnHelp() {}; | 41 | virtual LRESULT OnHelp() {}; |
40 | virtual bool OnButtonClicked(int buttonID, HWND buttonHWND); | 42 | virtual bool OnButtonClicked(unsigned buttonID, HWND buttonHWND); |
41 | virtual void OnOK() {}; | 43 | virtual void OnOK() {}; |
42 | virtual void OnCancel() {}; | 44 | virtual void OnCancel() {}; |
43 | */ | 45 | */ |