source: trunk/MFCtooling/TestProg/TestProgView.h @ 1674

Last change on this file since 1674 was 32, checked in by sherbold, 14 years ago
File size: 1.9 KB
Line 
1// TestProgView.h : interface of the CTestProgView class
2//
3
4
5#pragma once
6
7class CTestProgCntrItem;
8
9class CTestProgView : public CView
10{
11protected: // create from serialization only
12        CTestProgView();
13        DECLARE_DYNCREATE(CTestProgView)
14
15// Attributes
16public:
17        CTestProgDoc* GetDocument() const;
18        // m_pSelection holds the selection to the current CTestProgCntrItem.
19        // For many applications, such a member variable isn't adequate to
20        //  represent a selection, such as a multiple selection or a selection
21        //  of objects that are not CTestProgCntrItem objects.  This selection
22        //  mechanism is provided just to help you get started
23
24        // TODO: replace this selection mechanism with one appropriate to your app
25        CTestProgCntrItem* m_pSelection;
26
27// Operations
28public:
29
30// Overrides
31public:
32        virtual void OnDraw(CDC* pDC);  // overridden to draw this view
33        virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
34protected:
35        virtual void OnInitialUpdate(); // called first time after construct
36        virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
37        virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
38        virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
39        virtual BOOL IsSelected(const CObject* pDocItem) const;// Container support
40
41// Implementation
42public:
43        virtual ~CTestProgView();
44#ifdef _DEBUG
45        virtual void AssertValid() const;
46        virtual void Dump(CDumpContext& dc) const;
47#endif
48
49protected:
50
51// Generated message map functions
52protected:
53        afx_msg void OnDestroy();
54        afx_msg void OnSetFocus(CWnd* pOldWnd);
55        afx_msg void OnSize(UINT nType, int cx, int cy);
56        afx_msg void OnInsertObject();
57        afx_msg void OnCancelEditCntr();
58        afx_msg void OnFilePrint();
59        afx_msg void OnCancelEditSrvr();
60        DECLARE_MESSAGE_MAP()
61};
62
63#ifndef _DEBUG  // debug version in TestProgView.cpp
64inline CTestProgDoc* CTestProgView::GetDocument() const
65   { return reinterpret_cast<CTestProgDoc*>(m_pDocument); }
66#endif
67
Note: See TracBrowser for help on using the repository browser.