--- /dev/null
+//////////////////////////////////////////////////////\r
+// MainWnd.h\r
+// Declaration of the CMainWindow class\r
+\r
+#ifndef MAINWND_H\r
+#define MAINWND_H\r
+\r
+\r
+#include "TestWnd.h"\r
+#include "MyDialog.h"\r
+\r
+typedef Shared_Ptr<CTestWindow> TestWindowPtr;\r
+\r
+class CMainWindow : public CWnd\r
+{\r
+public:\r
+ CMainWindow();\r
+ virtual ~CMainWindow();\r
+ virtual HWND Create(CWnd* pParent = 0);\r
+ virtual void CreateTestWindows(int nWindows);\r
+ virtual void OnAllWindowsCreated();\r
+ virtual void PerformanceTest();\r
+ virtual void SendText(LPCTSTR str);\r
+ virtual void SetTestMessages(int nTestMessages) {m_nTestMessages = nTestMessages;}\r
+\r
+protected:\r
+ virtual void OnCreate();\r
+ virtual void OnInitialUpdate();\r
+ virtual void OnSize();\r
+ virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
+\r
+private:\r
+ enum Constants\r
+ {\r
+ WM_WINDOWCREATED = WM_USER+1, // the message sent when window is created\r
+ WM_TESTMESSAGE = WM_USER+2 // the test message\r
+ };\r
+\r
+ std::vector<TestWindowPtr> m_pCTestWindows; // A vector CTestWindow smart pointers\r
+// HWND m_hEdit; // Handle to the edit window\r
+ CEdit m_Edit; // Handle to the edit window\r
+ CFont m_Font; // A font for the edit window\r
+ int m_nTestMessages; // Number of test messages to be sent\r
+ int m_nTestWindows; // Number of test windows to create\r
+};\r
+\r
+\r
+#endif //MAINWND_H\r