按键盘上方向键 ← 或 → 可快速上下翻页,按键盘上的 Enter 键可回到本书目录页,按键盘上方向键 ↑ 可回到本页顶部!
————未阅读完?加入书签已便下次继续阅读!
#0034
#0035 // Generated message map functions
#0036 protected:
#0037 //{{AFX_MSG(CMainFrame)
#0038 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
#0039 // NOTE the ClassWizard will add and remove member functions here。
#0040 // DO NOT EDIT what you see in these blocks of generated code!
#0041 //}}AFX_MSG
#0042 DECLARE_MESSAGE_MAP ()
#0043 };
CHILDFRM。H
#0001 // ChildFrm。h : interface of the CChildFrame class
#0002 //
#0003 /////////////////////////////////////////////////////////////////
#0004
#0005 class CChildFrame : public CMDIChildWnd
#0006 {
#0007 DECLARE_DYNCREATE (CChildFrame)
#0008 public:
#0009 CChildFrame();
#0010
#0011 // Attributes
#0012 public:
#0013
#0014 // Operations
#0015 public:
#0016
#0017 // Overrides
#0018 // ClassWizard generated virtual function overrides
#0019 //{{AFX_VIRTUAL(CChildFrame)
#0020 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
#0021 //}}AFX_VIRTUAL
272
…………………………………………………………Page 335……………………………………………………………
第4章 Visual C++ 整合性軟體開發環境
#0022
#0023 // Implementation
#0024 public:
#0025 virtual ~CChildFrame();
#0026 #ifdef _DEBUG
#0027 virtual void AssertValid() const;
#0028 virtual void Dump(CDumpContext& dc) const;
#0029 #endif
#0030
#0031 // Generated message map functions
#0032 protected:
#0033 //{{AFX_MSG(CChildFrame)
#0034 // NOTE the ClassWizard will add and remove member functions here。
#0035 // DO NOT EDIT what you see in these blocks of generated code!
#0036 //}}AFX_MSG
#0037 DECLARE_MESSAGE_MAP ()
#0038 };
SCRIBBLEDOC。H
#0001 // ScribbleDoc。h : interface of the CScribbleDoc class
#0002 //
#0003 /////////////////////////////////////////////////////////////////
#0004
#0005 class CScribbleDoc : public CDocument
#0006 {
#0007 protected: // create from serialization only
#0008 CScribbleDoc();
#0009 DECLARE_DYNCREATE (CScribbleDoc)
#0010
#0011 // Attributes
#0012 public:
#0013
#0014 // Operations
#0015 public:
#0016
#0017 // Overrides
#0018 // ClassWizard generated virtual function overrides
#0019 //{{AFX_VIRTUAL(CScribbleDoc)
#0020 public:
#0021 virtual BOOL OnNewDocument();
#0022 virtual void Serialize (CArchive& ar);
#0023 //}}AFX_VIRTUAL
#0024
#0025 // Implementation
#0026 public:
273
…………………………………………………………Page 336……………………………………………………………
第篇 欲善工事先利其器
#0027 virtual ~CScribbleDoc();
#0028 #ifdef _DEBUG
#0029 virtual void AssertValid() const;
#0030 virtual void Dump(CDumpContext& dc) const;
#0031 #endif
#0032
#0033 protected:
#0034
#0035 // Generated message map functions
#0036 protected:
#0037 //{{AFX_MSG(CScribbleDoc)
#0038 // NOTE the ClassWizard will add and remove member functions here。
#0039 // DO NOT EDIT what you see in these blocks of generated code !
#0040 //}}AFX_MSG
#0041 DECLARE_MESSAGE_MAP ()
#0042 };
SCRIBBLEVIEW。H
#0001 // ScribbleView。h : interface of the CScribbleView class
#0002 //
#0003 /////////////////////////////////////////////////////////////////
#0004
#0005 class CScribbleView : public CView
#0006 {
#0007 protected: // create from serialization only
#0008 CScribbleView();
#0009 DECLARE_DYNCREATE (CScribbleView)
#0010
#0011 // Attributes
#0012 public:
#0013 CScribbleDoc* GetDocument();
#0014
#0015 // Operations
#0016 public:
#0017
#0018 // Overrides
#0019 // ClassWizard generated virtual function overrides
#0020 //{{AFX_VIRTUAL(CScribbleView)
#0021 public:
#0022 virtual void OnDraw (CDC* pDC); // overridden to draw this view
#0023 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
#0024 protected:
#0025 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
#0026 virtual void OnBeginPrinting(CDC* pDC; CPrintInfo* pInfo);
#0027 virtual void OnEndPrinting(CDC* pDC; CPrintInfo* pInfo);
274
…………………………………………………………Page 337……………………………………………………………
第4章 Visual C++ 整合性軟體開發環境
#0028 //}}AFX_VIRTUAL
#0029
#0030 // Implementation
#0031 public:
#0032 virtual ~CScribbleView();
#0033 #ifdef _DEBUG
#0034 virtual void AssertValid() const;
#0035 virtual void Dump(CDumpContext& dc) const;
#0036 #endif
#0037
#0038 protected:
#0039
#0040 // Generated message map functions
#0041 protected:
#0042 //{{AFX_MSG(CScribbleView)
#0043 // NOTE the ClassWizard will add and remove member functions here。
#0044 // DO NOT EDIT what you see in these blocks of generated code !
#0045 //}}AFX_MSG
#0046 DECLARE_MESSAGE_MAP ()
#0047 };
#0048
#0049 #ifndef _DEBUG // debug version in ScribbleView。cpp
#0050 inline CScribbleDoc* CScribbleView::GetDocument()
#0051 { return (CScribbleDoc*)m_pDocument; }
#0052 #endif
STDAFX。H
#0001 // stdafx。h : include file for standard system include files;
#0002 // or project specific include files that are used frequently; but
#0003 // are changed infrequently
#0004 //
#0005
#0006 #define VC_EXTRALEAN // Exclude rarely…used stuff from Windows headers
#0007
#0008 #include // MFC core and standard ponents
#0009 #include // MFC extensions
#0010 #ifndef _AFX_NO_AFXCMN_SUPPORT
#0011 #include // MFC support for Windows mon Controls
#0012 #endif // _AFX_NO_AFXCMN_SUPPORT
RESOURCE。H
#0001 //{{NO_DEPENDENCIES}}
#0002 // Microsoft Visual C++ generated include file。
275
…………………………………………………………Page 338……………………………………………………………
第篇 欲善工事先利其器
#0003 // Used by SCRIBBLE。RC
#0004 //
#0005 #define IDR_MAINFRAME 128
#0006 #define IDR_SCRIBTYPE 129
#0007 #define IDD_ABOUTBOX 100
#0008
#0009 //