嗔秤戻幣�哉膵�云利匈嬉蝕湊蛸賜�塋床四衲���萩晦編報炎嘔囚^泡仟 ̄云利匈�《超噌�殻窟�嵌虜隆輓麈觚翹瀘卉韮�仍仍�。� 烏御危列
匯弊慕廓 卦指云慕朕村 厘議慕尺 厘議慕禰 TXT畠云和墮 序秘慕杏 紗秘慕禰

侮秘燃竃MFC及2井(PDF鯉塀)-及75嫗

梓囚徒貧圭�鮗� ○ 賜 ★ 辛酔堀貧和鍬匈��梓囚徒貧議 Enter 囚辛指欺云慕朕村匈��梓囚徒貧圭�鮗� ● 辛指欺云匈競何��
!!!!隆堋響頼��紗秘慕禰厮宴和肝写偬堋響��




#0141  //����AFX_DATA_INIT 

#0142 �� 

#0143 

#0144 void CAboutDlg�今�DoDataExchange��CDataExchange* pDX�� 

#0145 �� 

#0146  CDialog�今�DoDataExchange��pDX���察�

#0147  //����AFX_DATA_MAP��CAboutDlg�� 

#0148  //����AFX_DATA_MAP 

#0149 �� 

#0150 

#0151 BEGIN_MESSAGE_MAP��CAboutDlg�察�CDialog�� 

#0152  //����AFX_MSG_MAP��CAboutDlg�� 

#0153          // No message handlers 

#0154  //����AFX_MSG_MAP 

#0155 END_MESSAGE_MAP�┌� 



                                                                                 279 


´´´´´´´´´´´´´´´´´´´´´´Page 342´´´´´´´´´´´´´´´´´´´´´´´

                   及鐙    圀鋲垢並枠旋凪匂 



                   #0156 

                   #0157 // App mand to run the dialog 

                   #0158 void CScribbleApp�今�OnAppAbout�┌� 

                   #0159 �� 

                   #0160  CAboutDlg aboutDlg�察�

                   #0161  aboutDlg。DoModal�┌��察�

                   #0162 �� 

                   #0163 

                   #0164 ///////////////////////////////////////////////////////////////// 

                   #0165 // CScribbleApp mands 



                   MAINFRM。CPP 



                   #0001  // MainFrm。cpp �此�implementation of the CMainFrame class 

                   #0002  // 

                   #0003 

                   #0004  #include ;stdafx。h; 

                   #0005  #include ;Scribble。h; 

                   #0006 

                   #0007  #include ;MainFrm。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  // CMainFrame 

                   #0017 

                   #0018  IMPLEMENT_DYNAMIC��CMainFrame�察�CMDIFrameWnd�� 

                   #0019 

                   #0020  BEGIN_MESSAGE_MAP��CMainFrame�察�CMDIFrameWnd�� 

                   #0021   //����AFX_MSG_MAP��CMainFrame�� 

                   #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   ON_WM_CREATE�┌� 

                   #0025   //����AFX_MSG_MAP 

                   #0026  END_MESSAGE_MAP�┌� 

                   #0027 

                   #0028  static UINT indicators�ВА�= 

                   #0029  �� 

                   #0030   ID_SEPARATOR�察          �// status line indicator 

                   #0031   ID_INDICATOR_CAPS�察�

                   #0032   ID_INDICATOR_NUM�察�

                   #0033   ID_INDICATOR_SCRL�察�



280 


´´´´´´´´´´´´´´´´´´´´´´Page 343´´´´´´´´´´´´´´´´´´´´´´´

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



#0034  ���察�

#0035 

#0036  ///////////////////////////////////////////////////////////////// 

#0037  // CMainFrame construction/destruction 

#0038 

#0039  CMainFrame�今�CMainFrame�┌� 

#0040  �� 

#0041   // TODO�此�add member initialization code here 

#0042 

#0043  �� 

#0044 

#0045  CMainFrame�今�~CMainFrame�┌� 

#0046  �� 

#0047  �� 

#0048 

#0049  int CMainFrame�今�OnCreate��LPCREATESTRUCT lpCreateStruct�� 

#0050  �� 

#0051   if ��CMDIFrameWnd�今�OnCreate��lpCreateStruct�� == ´1�� 

#0052           return ´1�察�

#0053 

#0054   if �┌�m_wndToolBar。Create��this�� ���� 

#0055           ��m_wndToolBar。LoadToolBar��IDR_MAINFRAME���� 

#0056   �� 

#0057           TRACE0�─�Failed to create toolbarn;���察�

#0058           return ´1�察     �// fail to create 

#0059   �� 

#0060 

#0061   if �┌�m_wndStatusBar。Create��this�� ���� 

#0062           ��m_wndStatusBar。SetIndicators��indicators�察�

#0063             sizeof��indicators��/sizeof��UINT������ 

#0064   �� 

#0065           TRACE0�─�Failed to create status barn;���察�

#0066           return ´1�察     �// fail to create 

#0067   �� 

#0068 

#0069   // TODO�此�Remove this if you don't want tool tips or a resizeable toolbar 

#0070   m_wndToolBar。SetBarStyle��m_wndToolBar。GetBarStyle�┌� �� 

#0071           CBRS_TOOLTIPS �� CBRS_FLYBY �� CBRS_SIZE_DYNAMIC���察�

#0072 

#0073   // TODO�此�Delete these three lines if you don't want the toolbar to 

#0074   //  be dockable 

#0075   m_wndToolBar。EnableDocking��CBRS_ALIGN_ANY���察�

#0076   EnableDocking��CBRS_ALIGN_ANY���察�

#0077   DockControlBar��&m_wndToolBar���察�

#0078 

#0079   return 0�察�



                                                                                      281 


´´´´´´´´´´´´´´´´´´´´´´Page 344´´´´´´´´´´´´´´´´´´´´´´´

                  及鐙    圀鋲垢並枠旋凪匂 



                  #0080  �� 

                  #0081 

                  #0082  BOOL CMainFrame�今�PreCreateWindow��CREATESTRUCT& cs�� 

                  #0083  �� 

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

                  #0085   //  the CREATESTRUCT cs 

                  #0086 

                  #0087   return CMDIFrameWnd�今�PreCreateWindow��cs���察�

                  #0088  �� 

                  #0089 

                  #0090  ///////////////////////////////////////////////////////////////// 

                  #0091  // CMainFrame diagnostics 

                  #0092 

                  #0093  #ifdef _DEBUG 

                  #0094  void CMainFrame�今�AssertValid�┌� const 

                  #0095  �� 

                  #0096   CMDIFrameWnd�今�AssertValid�┌��察�

                  #0097  �� 

                  #0098 

                  #0099  void CMainFrame�今�Dump��CDumpContext& dc�� const 

                  #0100  �� 

                  #0101   CMDIFrameWnd�今�Dump��dc���察�

                  #0102  �� 

                  #0103 

                  #0104  #endif //_DEBUG 

                  #0105 

                  #0106  ///////////////////////////////////////////////////////////////// 

                  #0107  // CMainFrame message handlers 



                  CHILDFRM。CPP 



                  #0001  // ChildFrm。cpp �此�implementation of the CChildFrame class 

                  #0002  // 

                  #0003 

                  #0004  #include ;stdafx。h; 

                  #0005  #include ;Scribble。h; 

                  #0006 

                  #0007  #include ;ChildFrm。h; 

                  #0008 

                  #0009  #ifdef _DEBUG 

                  #0010  #define new DEBUG_NEW 

                  #0011  #undef THIS_FILE 

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

                  #0013  #endif 

                  #0014 

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



282 


´´´´´´´´´´´´´´´´´´´´´´Page 345´´´´´´´´´´´´´´´´´´´´´´´

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



#0016  // CChildFrame 

#0017 

#0018  IMPLEMENT_DYNCREATE��CChildFrame�察�CMDIChildWnd�� 

#0019 

#0020  BEGIN_MESSAGE_MAP��CChildFrame�察�CMDIChildWnd�� 

#0021   //����AFX_MSG_MAP��CChildFrame�� 

#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  // CChildFrame construction/destruction 

#0029 

#0030  CChildFrame�今�CChildFrame�┌� 

#0031  �� 

#0032   // TODO�此�add member initialization code here 

#0033 

#0034  �� 

#0035 

#0036  CChildFrame�今�~CChildFrame�┌� 

#0037  �� 

#0038  �� 

#0039 

#0040  BOOL CChildFrame�今�PreCreateWindow��CREATESTRUCT& cs�� 

#0041  �� 

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

#0043   //  the CREATESTRUCT cs 

#0044 

#0045   return CMDIChildWnd�今�PreCreateWindow��cs���察�

#0046  �� 

#0047 

#0048  /////////////////////////
卦指朕村 貧匯匈 和匯匈 指欺競何 壘��0�� 家��1��
隆堋響頼��紗秘慕禰厮宴和肝写偬堋響��
梁椣戻幣�� 梁心弌傍議揖扮窟燕得胎��傍竃徭失議心隈才凪万弌誌育断蛍�輌臆惨軼僑〃�燕慕得珊辛參資誼持蛍才将刮襲潜��範寔亟圻幹慕得 瓜寡追葎娼得辛參資誼寄楚署衛、持蛍才将刮襲潜填��