Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / Performance / 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 \r
9 #include "TestWnd.h"\r
10 #include "MyDialog.h"\r
11 \r
12 typedef Shared_Ptr<CTestWindow> TestWindowPtr;\r
13 \r
14 class CMainWindow : public CWnd\r
15 {\r
16 public:\r
17         CMainWindow();\r
18         virtual ~CMainWindow();\r
19         virtual HWND Create(CWnd* pParent = 0);\r
20         virtual void CreateTestWindows(int nWindows);\r
21         virtual void OnAllWindowsCreated();\r
22         virtual void PerformanceTest();\r
23         virtual void SendText(LPCTSTR str);\r
24         virtual void SetTestMessages(int nTestMessages) {m_nTestMessages = nTestMessages;}\r
25 \r
26 protected:\r
27         virtual void OnCreate();\r
28         virtual void OnInitialUpdate();\r
29         virtual void OnSize();\r
30         virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
31 \r
32 private:\r
33         enum Constants\r
34         {\r
35                 WM_WINDOWCREATED     = WM_USER+1,       // the message sent when window is created\r
36                 WM_TESTMESSAGE       = WM_USER+2    // the test message\r
37         };\r
38 \r
39         std::vector<TestWindowPtr> m_pCTestWindows;     // A vector CTestWindow smart pointers\r
40 //      HWND  m_hEdit;                  // Handle to the edit window\r
41         CEdit m_Edit;                   // Handle to the edit window\r
42         CFont m_Font;                   // A font for the edit window\r
43         int m_nTestMessages;    // Number of test messages to be sent\r
44         int m_nTestWindows;             // Number of test windows to create\r
45 };\r
46 \r
47 \r
48 #endif  //MAINWND_H\r

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