1 ////////////////////////////////////////
\r
3 // Declaration of the CMainWindow class
\r
10 typedef Shared_Ptr<CTestWindow> TestWndPtr;
\r
12 class CMainWindow : public CWnd
\r
16 virtual ~CMainWindow() {}
\r
17 virtual HWND Create(CWnd* pParent = 0);
\r
18 virtual void OnAllWindowsCreated();
\r
21 virtual void OnCreate();
\r
22 virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
\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
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