1 //////////////////////////////////////////////
\r
3 // Definitions for the CTestWindow class
\r
10 CTestWindow::CTestWindow()
\r
14 void CTestWindow::CreateWin(int i)
\r
18 wsprintf(str, _T("Test Window %d"), m_nWindow);
\r
19 CreateEx(0L, NULL, str, WS_OVERLAPPEDWINDOW | WS_VISIBLE,
\r
20 420, 50 + 4*i, 300, 200, NULL, NULL);
\r
23 void CTestWindow::OnInitialUpdate()
\r
25 // Get a reference to the CMainWnd object
\r
26 CMainWindow& MainWnd = ((CPerformanceApp*)GetApp())->GetMainWnd();
\r
28 // Post a message to MainWnd when the window is created.
\r
29 MainWnd.PostMessage(WM_WINDOWCREATED, 0, 0);
\r
32 LRESULT CTestWindow::WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
\r
34 static LRESULT nMessages = 0;
\r
40 str.Format(str, _T("Closing test Window #%d\n"), m_nWindow);
\r
45 case WM_TESTMESSAGE:
\r
46 // return the number of WM_TESTMESSAGE messages processsed so far
\r
50 return WndProcDefault(uMsg, wParam, lParam);
\r