Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / Threads / src / MainWnd.h
1 ////////////////////////////////////////\r
2 // MainWnd.h\r
3 //  Declaration of the CMainWindow class\r
4 \r
5 #ifndef MAINWND_H\r
6 #define MAINWND_H\r
7 \r
8 #include "TestWnd.h"\r
9 \r
10 typedef Shared_Ptr<CTestWindow> TestWndPtr;\r
11 \r
12 class CMainWindow : public CWnd\r
13 {\r
14 public:\r
15         CMainWindow();\r
16         virtual ~CMainWindow() {}\r
17         virtual HWND Create(CWnd* pParent = 0);\r
18         virtual void OnAllWindowsCreated();\r
19 \r
20 protected:\r
21         virtual void OnCreate();\r
22         virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
23 \r
24 private:\r
25         enum Constants\r
26         {\r
27                 WM_WINDOWCREATED = WM_USER+1,   // the message sent when window is created\r
28                 WM_TESTMESSAGE   = WM_USER+2    // the test message\r
29         };\r
30 \r
31         std::vector<TestWndPtr> m_vTestWnd;     // A vector of CTestWin smart pointers\r
32         int m_nTestWin;                                         // Number of additional test windows to be created\r
33         int m_nWindowsCreated;                          // Count of windows actually created\r
34 };\r
35 \r
36 \r
37 #endif  //MAINWND_H\r

UCC git Repository :: git.ucc.asn.au