1 //////////////////////////////////////////////
\r
3 // Definitions for the CView class
\r
13 void CView::OnDraw(CDC* pDC)
\r
15 CRect rc = GetClientRect();
\r
17 // Centre some text in our view window
\r
18 pDC->DrawText(_T("Choose a Property Sheet from the menu"), -1, rc, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
\r
21 void CView::OnInitialUpdate()
\r
23 // OnInitialUpdate is called immediately after the window is created
\r
24 TRACE(_T("View Window Created\n"));
\r
27 void CView::PreCreate(CREATESTRUCT &cs)
\r
29 // Here we set the defaults used by the create function for the view window
\r
30 // Preforming this is optional, but doing so allows us to
\r
31 // take more precise control over the window we create.
\r
33 // Set the Window Class name
\r
34 cs.lpszClass = _T("View");
\r
36 // Set the extended style
\r
37 cs.dwExStyle = WS_EX_CLIENTEDGE;
\r
40 LRESULT CView::WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
\r
46 break; // Also do default processing
\r
49 // pass unhandled messages on for default processing
\r
50 return WndProcDefault(uMsg, wParam, lParam);
\r