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

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

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




                   #0008 

                   #0009  // Next default values for new objects 

                   #0010  // 

                   #0011  #ifdef APSTUDIO_INVOKED 

                   #0012  #ifndef APSTUDIO_READONLY_SYMBOLS 

                   #0013  #define _APS_3D_CONTROLS                 1 

                   #0014  #define _APS_NEXT_RESOURCE_VALUE         130 

                   #0015  #define _APS_NEXT_CONTROL_VALUE          1000 

                   #0016  #define _APS_NEXT_SYMED_VALUE            101 

                   #0017  #define _APS_NEXT_MAND_VALUE          32771 

                   #0018  #endif 

                   #0019  #endif 



                   STDAFX。CPP 



                   #0001  // stdafx。cpp �此�source file that includes just the standard includes 

                   #0002  //       Scribble。pch will be the pre´piled header 

                   #0003  //       stdafx。obj will contain the pre´piled type information 

                   #0004 

                   #0005  #include ;stdafx。h; 



                   SCRIBBLE。CPP 



                   #0001  // Scribble。cpp �此�Defines the class behaviors for the application。 

                   #0002  // 

                   #0003 

                   #0004  #include ;stdafx。h; 

                   #0005  #include ;Scribble。h; 

                   #0006 

                   #0007  #include ;MainFrm。h; 

                   #0008  #include ;ChildFrm。h; 

                   #0009  #include ;ScribbleDoc。h; 

                   #0010  #include ;ScribbleView。h; 

                   #0011 

                   #0012  #ifdef _DEBUG 

                   #0013  #define new DEBUG_NEW 

                   #0014  #undef THIS_FILE 

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

                   #0016  #endif 

                   #0017 



276 


´´´´´´´´´´´´´´´´´´´´´´Page 339´´´´´´´´´´´´´´´´´´´´´´´

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



#0018  ///////////////////////////////////////////////////////////////// 

#0019  // CScribbleApp 

#0020 

#0021  BEGIN_MESSAGE_MAP��CScribbleApp�察�CWinApp�� 

#0022   //����AFX_MSG_MAP��CScribbleApp�� 

#0023   ON_MAND��ID_APP_ABOUT�察�OnAppAbout�� 

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

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

#0026   //����AFX_MSG_MAP 

#0027   // Standard file based document mands 

#0028   ON_MAND��ID_FILE_NEW�察�CWinApp�今�OnFileNew�� 

#0029   ON_MAND��ID_FILE_OPEN�察�CWinApp�今�OnFileOpen�� 

#0030   // Standard print setup mand 

#0031   ON_MAND��ID_FILE_PRINT_SETUP�察�CWinApp�今�OnFilePrintSetup�� 

#0032  END_MESSAGE_MAP�┌� 

#0033 

#0034  ///////////////////////////////////////////////////////////////// 

#0035  // CScribbleApp construction 

#0036 

#0037  CScribbleApp�今�CScribbleApp�┌� 

#0038  �� 

#0039   // TODO�此�add construction code here�察�

#0040   // Place all significant initialization in InitInstance 

#0041  �� 

#0042 

#0043  ///////////////////////////////////////////////////////////////// 

#0044  // The one and only CScribbleApp object 

#0045 

#0046  CScribbleApp theApp�察�

#0047 

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

#0049  // CScribbleApp initialization 

#0050 

#0051  BOOL CScribbleApp�今�InitInstance�┌� 

#0052  �� 

#0053   // Standard initialization 

#0054   // If you are not using these features and wish to reduce the size 

#0055   //  of your final executable�察�you should remove from the following 

#0056   //  the specific initialization routines you do not need。 

#0057 

#0058  #ifdef _AFXDLL 

#0059   Enable3dControls�┌��察     �// Call this when using MFC in a shared DLL 

#0060  #else 

#0061   Enable3dControlsStatic�┌��察  �// Call this when linking to MFC statically 

#0062  #endif 

#0063 



                                                                                    277 


´´´´´´´´´´´´´´´´´´´´´´Page 340´´´´´´´´´´´´´´´´´´´´´´´

                   及鐙    圀鋲垢並枠旋凪匂 



                   #0064 // 作拭旬廣��0065~0068 葎Visual C���� 5。0 仟奐 



                   #0065  // Change the registry key under which our settings are stored。 

                   #0066  // You should modify this string to be something appropriate 

                   #0067  // such as the name of your pany or organization。 

                   #0068  SetRegistryKey��_T�─�Local AppWizard´Generated Applications;�����察�

                   #0069 

                   #0070  LoadStdProfileSettings�┌��察 �// Load std INI file options ��including MRU�� 

                   #0071 

                   #0072  // Register the application's document templates。  Document templates 

                   #0073  //  serve as the connection between documents�察�frame windows and views。 

                   #0074 

                   #0075  CMultiDocTemplate* pDocTemplate�察�

                   #0076  pDocTemplate = new CMultiDocTemplate�─�

                   #0077          IDR_SCRIBTYPE�察�

                   #0078          RUNTIME_CLASS��CScribbleDoc���察�

                   #0079          RUNTIME_CLASS��CChildFrame���察�// custom MDI child frame 

                   #0080          RUNTIME_CLASS��CScribbleView�����察�

                   #0081  AddDocTemplate��pDocTemplate���察�

                   #0082 

                   #0083  // create main MDI Frame window 

                   #0084  CMainFrame* pMainFrame = new CMainFrame�察�

                   #0085  if �┌�pMainFrame´〃LoadFrame��IDR_MAINFRAME���� 

                   #0086          return FALSE�察�

                   #0087  m_pMainWnd = pMainFrame�察�

                   #0088 

                   #0089  // Enable drag/drop open 

                   #0090  m_pMainWnd´〃DragAcceptFiles�┌��察�

                   #0091 

                   #0092  // Enable DDE Execute open 

                   #0093  EnableShellOpen�┌��察�

                   #0094  RegisterShellFileTypes��TRUE���察�

                   #0095 

                   #0096  // Parse mand line for standard shell mands�察�DDE�察�file open 

                   #0097  CmandLineInfo cmdInfo�察�

                   #0098  ParsemandLine��cmdInfo���察�

                   #0099 

                   #0100  // Dispatch mands specified on the mand line 

                   #0101  if �┌�ProcessShellmand��cmdInfo���� 

                   #0102          return FALSE�察�

                   #0103 

                   #0104  // The main window has been initialized�察�so show and update it。 

                   #0105  pMainFrame´〃ShowWindow��m_nCmdShow���察�

                   #0106  pMainFrame´〃UpdateWindow�┌��察�

                   #0107 

                   #0108  return TRUE�察�

                   #0109 �� 



278 


´´´´´´´´´´´´´´´´´´´´´´Page 341´´´´´´´´´´´´´´´´´´´´´´´

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



#0110 

#0111 ///////////////////////////////////////////////////////////////// 

#0112 // CAboutDlg dialog used for App About 

#0113 

#0114 class CAboutDlg �此�public CDialog 

#0115 �� 

#0116 public�此�

#0117  CAboutDlg�┌��察�

#0118 

#0119 // Dialog Data 

#0120  //����AFX_DATA��CAboutDlg�� 

#0121  enum �� IDD = IDD_ABOUTBOX ���察�

#0122  //����AFX_DATA 

#0123 

#0124  // ClassWizard generated virtual function overrides 

#0125  //����AFX_VIRTUAL��CAboutDlg�� 

#0126  protected�此�

#0127  virtual void DoDataExchange��CDataExchange* pDX���察 �// DDX/DDV support 

#0128  //����AFX_VIRTUAL 

#0129 

#0130 // Implementation 

#0131 protected�此�

#0132  //����AFX_MSG��CAboutDlg�� 

#0133          // No message handlers 

#0134  //����AFX_MSG 

#0135  DECLARE_MESSAGE_MAP�┌� 

#0136 ���察�

#0137 

#0138 CAboutDlg�今�CAboutDlg�┌� �此�CDialog��CAboutDlg�今�IDD�� 

#0139 �� 

#0140  //����AFX_DATA_INIT��CAboutDlg�� 

#0141  //����AFX_DATA_INIT 

#0142 �� 

#0143 

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

#0145 �� 

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