嗔秤戻幣�哉膵�云利匈嬉蝕湊蛸賜�塋床四衲���萩晦編報炎嘔囚^泡仟 ̄云利匈��
源平慎弌傍利 卦指云慕朕村 紗秘慕禰 厘議慕尺 厘議慕禰 TXT畠云和墮 〆辺茄欺厘議箝誓匂〇

侮秘燃竃MFC及2井(PDF鯉塀)-及41何蛍

酔楯荷恬: 梓囚徒貧圭�鮗� ○ 賜 ★ 辛酔堀貧和鍬匈 梓囚徒貧議 Enter 囚辛指欺云慕朕村匈 梓囚徒貧圭�鮗� ● 辛指欺云匈競何! 泌惚云慕短嗤堋響頼���誅卒亮茂�俊彭堋響��辛聞喘貧圭 "辺茄欺厘議箝誓匂" 孔嬬 才 "紗秘慕禰" 孔嬬��



#0046  �� 

#0047 

#0048  ///////////////////////////////////////////////////////////////// 

#0049  // CChildFrame diagnostics 

#0050 

#0051  #ifdef _DEBUG 

#0052  void CChildFrame�今�AssertValid�┌� const 

#0053  �� 

#0054   CMDIChildWnd�今�AssertValid�┌��察�

#0055  �� 

#0056 

#0057  void CChildFrame�今�Dump��CDumpContext& dc�� const 

#0058  �� 

#0059   CMDIChildWnd�今�Dump��dc���察�

#0060  �� 

#0061 



                                                                                     283 


´´´´´´´´´´´´´´´´´´´´´´Page 346´´´´´´´´´´´´´´´´´´´´´´´

                   及鐙    圀鋲垢並枠旋凪匂 



                   #0062  #endif //_DEBUG 

                   #0063 

                   #0064  ///////////////////////////////////////////////////////////////// 

                   #0065  // CChildFrame message handlers 



                   SCRIBBLEDOC。CPP 



                   #0001  // ScribbleDoc。cpp �此�implementation of the CScribbleDoc class 

                   #0002  // 

                   #0003 

                   #0004  #include ;stdafx。h; 

                   #0005  #include ;Scribble。h; 

                   #0006 

                   #0007  #include ;ScribbleDoc。h; 

                   #0008 

                   #0009  #ifdef _DEBUG 

                   #0010  #define new DEBUG_NEW 

                   #0011  #undef THIS_FILE 

                   #0012  static char THIS_FILE�ВА�= __FILE__�察�

                   #0013  #endif 

                   #0014 

                   #0015  ///////////////////////////////////////////////////////////////// 

                   #0016  // CScribbleDoc 

                   #0017 

                   #0018  IMPLEMENT_DYNCREATE��CScribbleDoc�察�CDocument�� 

                   #0019 

                   #0020  BEGIN_MESSAGE_MAP��CScribbleDoc�察�CDocument�� 

                   #0021   //����AFX_MSG_MAP��CScribbleDoc�� 

                   #0022       // NOTE the ClassWizard will add and remove mapping macros here。 

                   #0023       //    DO NOT EDIT what you see in these blocks of generated code� �

                   #0024   //����AFX_MSG_MAP 

                   #0025  END_MESSAGE_MAP�┌� 

                   #0026 

                   #0027  ///////////////////////////////////////////////////////////////// 

                   #0028  // CScribbleDoc construction/destruction 

                   #0029 

                   #0030  CScribbleDoc�今�CScribbleDoc�┌� 

                   #0031  �� 

                   #0032   // TODO�此�add one´time construction code here 

                   #0033 

                   #0034  �� 

                   #0035 

                   #0036  CScribbleDoc�今�~CScribbleDoc�┌� 

                   #0037  �� 

                   #0038  �� 

                   #0039 



284 


´´´´´´´´´´´´´´´´´´´´´´Page 347´´´´´´´´´´´´´´´´´´´´´´´

                                            及4嫗    Visual C����  屁栽來���w�_�l�h廠 



#0040  BOOL CScribbleDoc�今�OnNewDocument�┌� 

#0041  �� 

#0042   if �┌�CDocument�今�OnNewDocument�┌��� 

#0043           return FALSE�察�

#0044 

#0045   // TODO�此�add reinitialization code here 

#0046   // ��SDI documents will reuse this document�� 

#0047 

#0048   return TRUE�察�

#0049  �� 

#0050 

#0051  ///////////////////////////////////////////////////////////////// 

#0052  // CScribbleDoc serialization 

#0053 

#0054  void CScribbleDoc�今�Serialize��CArchive& ar�� 

#0055  �� 

#0056   if ��ar。IsStoring�┌��� 

#0057   �� 

#0058           // TODO�此�add storing code here 

#0059   �� 

#0060   else 

#0061   �� 

#0062           // TODO�此�add loading code here 

#0063   �� 

#0064  �� 

#0065 

#0066  ///////////////////////////////////////////////////////////////// 

#0067  // CScribbleDoc diagnostics 

#0068 

#0069  #ifdef _DEBUG 

#0070  void CScribbleDoc�今�AssertValid�┌� const 

#0071  �� 

#0072   CDocument�今�AssertValid�┌��察�

#0073  �� 

#0074 

#0075  void CScribbleDoc�今�Dump��CDumpContext& dc�� const 

#0076  �� 

#0077   CDocument�今�Dump��dc���察�

#0078  �� 

#0079  #endif //_DEBUG 

#0080 

#0081  ///////////////////////////////////////////////////////////////// 

#0082  // CScribbleDoc mands 



                                                                                   285 


´´´´´´´´´´´´´´´´´´´´´´Page 348´´´´´´´´´´´´´´´´´´´´´´´

                   及鐙    圀鋲垢並枠旋凪匂 



                   SCRIBBLEVIEW。CPP 



                   #0001  // ScribbleView。cpp �此�implementation of the CScribbleView class 

                   #0002  // 

                   #0003 

                   #0004  #include ;stdafx。h; 

                   #0005  #include ;Scribble。h; 

                   #0006 

                   #0007  #include ;ScribbleDoc。h; 

                   #0008  #include ;ScribbleView。h; 

                   #0009 

                   #0010  #ifdef _DEBUG 

                   #0011  #define new DEBUG_NEW 

                   #0012  #undef THIS_FILE 

                   #0013  static char THIS_FILE�ВА�= __FILE__�察�

                   #0014  #endif 

                   #0015 

                   #0016  ///////////////////////////////////////////////////////////////// 

                   #0017  // CScribbleView 

                   #0018 

                   #0019  IMPLEMENT_DYNCREATE��CScribbleView�察�CView�� 

                   #0020 

                   #0021  BEGIN_MESSAGE_MAP��CScribbleView�察�CView�� 

                   #0022   //����AFX_MSG_MAP��CScribbleView�� 

                   #0023        // NOTE the ClassWizard will add and remove mapping macros here。 

                   #0024        //    DO NOT EDIT what you see in these blocks of generated code� �

                   #0025   //����AFX_MSG_MAP 

                   #0026   // Standard printing mands 

                   #0027   ON_MAND��ID_FILE_PRINT�察�CView�今�OnFilePrint�� 

                   #0028   ON_MAND��ID_FILE_PRINT_DIRECT�察�CView�今�OnFilePrint�� 

                   #0029   ON_MAND��ID_FILE_PRINT_PREVIEW�察�CView�今�OnFilePrintPreview�� 

                   #0030  END_MESSAGE_MAP�┌� 

                   #0031 

                   #0032  ///////////////////////////////////////////////////////////////// 

                   #0033  // CScribbleView construction/destruction 

                   #0034 

                   #0035  CScribbleView�今�CScribbleView�┌� 

                   #0036  �� 

                   #0037   // TODO�此�add construction code here 

                   #0038 

                   #0039  �� 

                   #0040 

                   #0041  CScribbleView�今�~CScribbleView�┌� 

                   #0042  �� 

                   #0043  �� 

                   #0044 



286 


´´´´´´´´´´´´´´´´´´´´´´Page 349´´´´´´´´´´´´´´´´´´´´´´´

                                           及4嫗    Visual C����  屁栽來���w�_�l�h廠 



#0045  BOOL CScribbleView�今�PreCreateWindow��CREATESTRUCT& cs�� 

#0046  �� 

#0047   // TODO�此�Modify the Window class or styles here by modifying 

#0048   //  the CREATESTRUCT cs 

#0049 

#0050   return CView�今�PreCreateWindow��cs���察�

#0051  �� 

#0052 

#0053  ///////////////////////////////////////////////////////////////// 

#0054  // CScribbleView drawing 

#0055 

#0056  void CScribbleView�今�OnDraw��CDC* pDC�� 

#0057  �� 

#0058   CScribbleDoc* pDoc = GetDocument�┌��察�

#0059   ASSERT_VALID��pDoc���察�

#0060 

#0061   // TODO�此�add draw code for native data here 

#0062  �� 

#0063 

#0064  ///////////////////////////////////////////////////////////////// 

#0065  // CScribbleView printing 

#0066 

#0067  BOOL CScribbleView�今�OnPreparePrinting��CPrintInfo* pInfo�� 

#0068  �� 

#0069   // default preparation 

#0070   return DoPreparePrinting��pInfo���察�

#0071  �� 

#0072 

#0073  void CScribbleView�今�OnBeginPrinting��CDC* /*pDC*/�察�CPrintInfo* /*pInfo*/�� 

#0074  �� 

#0075   // TODO�此�add extra initialization before printing 

#0076  �� 

#0077 

#0078  void CScribbleView�今�OnEndPrinting��CDC* /*pDC*/�察�CPrintInfo* /*pInfo*/�� 

#0079  �� 

#0080   // TODO�此�add cleanup after printing 

#0081  �� 

#0082 

#0083  ///////////////////////////////////////////////////////////////// 

#0084  // CScribbleView diagnostics 

#0085 

#0086  #ifdef _DEBUG 

#0087  void CScribbleView�今�AssertValid�┌� const 

#0088  �� 

#0089   CView�今�AssertValid�┌��察�

#0090  �� 



                                                                                 287 


´´´´´´´´´´´´´´´´´´´´´´Page 350´´´´´´´´´´´´´´´´´´´´´´´

                    及鐙    圀鋲垢並枠旋凪匂 



                    #0091 

                    #0092  void CScribbleView�今�Dump��CDumpContext& dc�� const 

                    #0093  �� 

                    #0094   CView�今�Dump��dc���察�

                    #0095  �� 

                    #0096 

                    #0097  CScribbleDoc* CScribbleView�今�GetDocument�┌� // non´debug version is 

                    #0098  ��                                                 // inline 

                    #0099   ASSERT��m_pDocument´〃IsKindOf��RUNTIME_CLASS��CScribbleDoc�������察�

                    #0100   return ��CScribbleDoc*��m_pDocument�察�

                    #0101  �� 

                    #0102  #endif //_DEBUG 

                    #0103 

                    #0104  ///////////////////////////////////////////////////////////////// 

                    #0105  // CScribbleView message handlers 



                    SCRIBBLE。     RC   ��參和岻鷹厮将俐儒��双竃議麼勣朕議頁斑低阻盾慌嗤謹富彿坿�� 



                    #0001  //Microsoft Visual C���� generated resource script。 

                    #0002  // 

                    #0003 

                    #0004  #include ;resource。h; 

                    #0005  #include ;afxres。h; 

                    #0006 

                    #0007  IDR_MAINFRAME         ICON    DISCARDABLE     ;resScribble。ico; 

                    #0008  IDR_SCRIBTYPE         ICON    DISCARDABLE     ;resScribbleDoc。ico; 

                    #0009 

                    #0010  IDR_MAINFRAME         BITMAP  MOVEABLE PURE   ;resToolbar。bmp; 

                    #0011 

                    #0012  IDR_MAINFRAME TOOLBAR DISCARDABLE  16�察�15 

                    #0013  BEGIN 

                    #0014      BUTTON      ID_FILE_NEW 

                    #0015      BUTTON      ID_FILE_OPEN 

                    #0016      BUTTON      ID_FILE_SAVE 

                    #0017          SEPARATOR 

                    #0018      BUTTON      ID_EDIT_CUT 

                    #0019      BUTTON      ID_EDIT_COPY 

                    #0020      BUTTON      ID_EDIT_PASTE 

                    #0021          SEPARATOR 

                    #0022      BUTTON      ID_FILE_PRINT 

                    #0023      BUTTON      ID_APP_ABOUT 

                    #0024  END 

                    #0025 

                    #0026  IDR_MAINFRAME MENU PRELOAD DISCARDABLE 

                    #0027  BEGIN 

                    #0028          POPUP ;&File; 



288 


´´´´´´´´´´´´´´´´´´´´´´Page 351´´´´´´´´´´´´´´´´´´´´´´´

                                              及4嫗    Visual C����  屁栽來���w�_�l�h廠 



#0029          BEGIN 

#0030                  。。。 

#0031          END 

#0032          POPUP ;&View; 

#0033          BEGIN 

#0034                  。。。 

#0035          END 

#0036          POPUP ;&Help; 

#0037          BEGIN 

#0038                  。。。 

#0039          END 

#0040  END 

#0041 

#0042  IDR_SCRIBTYPE MENU PRELOAD DISCARDABLE 

#0043  BEGIN 

#0044          POPUP ;&File; 

#0045          BEGIN 

#0046                  。。。 

#0047          END 

#0048          POPUP ;&Edit; 

#0049          BEGIN 

#0050                  。。。 

#0051          END 

#0052          POPUP ;&View; 

#0053          BEGIN 

#0054                  。。。 

#0055          END 

#0056          POPUP ;&Window; 

#0057          BEGIN 

#0058                  。。。 

#0059          END 

#0060          POPUP ;&Help; 

#0061          BEGIN 

#0062                  。。。 

#0063          END 

#0064  END 

#0065 

#0066  IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE 

#0067  BEGIN 

#0068                  。。。 

#0069  END 

#0070 

#0071  IDD_ABOUTBOX DIALOG DISCARDABLE  0�察�0�察�217�察�55 

#0072  CAPTION ;About Scribble; 

#0073  STYLE DS_MODALFRAME �� WS_POPUP �� WS_CAPTION �� WS_SYSMENU 

#0074  FONT 8�察 �MS Sans Serif; 



                                                                                       289 


´´´´´´´´´´´´´´´´´´´´´´Page 352´´´´´´´´´´´´´´´´´´´´´´´

                    及鐙    圀鋲垢並枠旋凪匂 



                    #0075  BEGIN 

                    #0076                  。。。 

                    #0077  END 

                    #0078 

                    #0079  VS_VERSION_INFO     VERSIONINFO 

                    #0080    FILEVERSION       1��0��0��1 

                    #0081    PRODUCTVERSION    1��0��0��1 

                    #0082   FILEFLAGSMASK 0x3fL 

                    #0083  #ifdef _DEBUG 

                    #0084   FILEFLAGS 0x1L 

                    #0085  #else 

                    #0086   FILEFLAGS 0x0L 

                    #0087  #endif 

                    #0088   FILEOS 0x4L 

                    #0089   FILETYPE 0x1L 

                    #0090   FILESUBTYPE 0x0L 

                    #0091  BEGIN 

                    #0092      BLOCK ;StringFileInfo; 

                    #0093      BEGIN 

                    #0094      BLOCK ;040904B0; 

                    #0095          BEGIN 

                    #0096              VALUE ;panyName;�察     �0; 

                    #0097              VALUE ;FileDescription;�察 �Scribble MFC Application0; 

                    #0098              VALUE ;FileVersion;�察     �1�察�0�察�0�察�10; 

                    #0099              VALUE ;InternalName;�察    �Scribble0; 

                    #0100              VALUE ;LegalCopyright;�察  �Copyright ��C�� 19970; 

                    #0101              VALUE ;LegalTrademarks;�察 �0; 

                    #0102              VALUE ;OriginalFilename;�察�Scribble。EXE0; 

                    #0103              VALUE ;ProductName;�察     �Scribble Application0; 

                    #0104              VALUE ;ProductVersion;�察  �1�察�0�察�0�察�10; 

                    #0105          END 

                    #0106      END 

                    #0107      BLOCK ;VarFileInfo; 

                    #0108      BEGIN 

                    #0109              VALUE ;Translation;�察�0x409�察�1200 

                    #0110      END 

                    #0111  END 

                    #0112 

                    #0113  ///////////////////////////////////////////////////////////////// 

                    #0114  // String Table 

                    #0115 

                    #0116  STRINGTABLE PRELOAD DISCARDABLE 

                    #0117  BEGIN 

                    #0118      IDR_MAINF
卦指朕村 貧匯匈 和匯匈 指欺競何 壘��9�� 家��10��
酔楯荷恬: 梓囚徒貧圭�鮗� ○ 賜 ★ 辛酔堀貧和鍬匈 梓囚徒貧議 Enter 囚辛指欺云慕朕村匈 梓囚徒貧圭�鮗� ● 辛指欺云匈競何!
梁椣戻幣�� 梁心弌傍議揖扮窟燕得胎��傍竃徭失議心隈才凪万弌誌育断蛍�輌臆惨軼僑〃�燕慕得珊辛參資誼持蛍才将刮襲潜��範寔亟圻幹慕得 瓜寡追葎娼得辛參資誼寄楚署衛、持蛍才将刮襲潜填��