1 //////////////////////////////////////////////////////
\r
3 // Declaration of the CMainWindow class
\r
10 #include "MyDialog.h"
\r
12 typedef Shared_Ptr<CTestWindow> TestWindowPtr;
\r
14 class CMainWindow : public CWnd
\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
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
35 WM_WINDOWCREATED = WM_USER+1, // the message sent when window is created
\r
36 WM_TESTMESSAGE = WM_USER+2 // the test message
\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