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

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

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




                        CG_IDS_DIDYOUKNOW             ;Did You Know。。。; 

                    CG_IDS_FILE_ABSENT   ;Tips file does not exist in the prescribed directory�  А�

                    END 



                    STRINGTABLE DISCARDABLE 

                    BEGIN 

                        CG_IDP_FILE_CORRUPT     ;Trouble reading the tips file; 

                        CG_IDS_TIPOFTHEDAYHELP  ;&Help; 

                    END 



                    MA INFRM。H  ��咐唹何芸葎仟奐坪否�� 



                    class CMainFrame �此�public CMDIFrameWnd 

                    �� 

                    。。。 

                    // Overrides 

                            // ClassWizard generated virtual function overrides 

                            //����AFX_VIRTUAL��CMainFrame�� 

                            virtual BOOL PreCreateWindow��CREATESTRUCT& cs���察�

                            //����AFX_VIRTUAL 

                    。。。 

                    // Generated message map functions 

                    protected�此�

                            afx_msg void OnInitMenu��CMenu* pMenu���察�

                            。。。 

                    ���察�



                    MA INFRM。CPP  ��咐唹何芸葎仟奐坪否�� 



                    #0001  。。。 

                    #0002  #include ;Splash。h; 

                    #0003  。。。 

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

                    #0005  �� 

                    #0006      。。。 

                    #0007      // CG�此�The following line was added by the Splash Screen ponent。 

                    #0008      CSplashWnd�今�ShowSplashScreen��this���察�

                    #0009 

                    #0010      return 0�察�

                    #0011  �� 

                    #0012  。。。 

                    #0013  ///////////////////////////////////////////////////////////////// 

                    #0014  // CMainFrame message handlers 

                    #0015 



806 


´´´´´´´´´´´´´´´´´´´´´´Page 869´´´´´´´´´´´´´´´´´´´´´´´

                             16                            ponents & ActiveX Controls 

                          及 嫗 嫋��議主芋 聞喘 



#0016  void CMainFrame�今�OnInitMenu��CMenu* pMenu�� 

#0017  �� 

#0018      CMDIFrameWnd�今�OnInitMenu��pMenu���察�

#0019 

#0020      // CG�此�This block added by 'Tip of the Day' ponent。 

#0021      �� 

#0022          // TODO�此�This code adds the ;Tip of the Day; menu item 

#0023          // on the fly。  It may be removed after adding the menu 

#0024          // item to all applicable menu items using the resource 

#0025          // editor。 

#0026 

#0027          // Add Tip of the Day menu item on the fly� �

#0028          static CMenu* pSubMenu = NULL�察�

#0029 

#0030          CString strHelp�察�strHelp。LoadString��CG_IDS_TIPOFTHEDAYHELP���察�

#0031          CString strMenu�察�

#0032          int nMenuCount = pMenu´〃GetMenuItemCount�┌��察�

#0033          BOOL bFound = FALSE�察�

#0034          for ��int i=0�察�i ゞ nMenuCount�察�i������ 

#0035          �� 

#0036              pMenu´〃GetMenuString��i�察�strMenu�察�MF_BYPOSITION���察�

#0037              if ��strMenu == strHelp�� 

#0038              �� 

#0039                  pSubMenu = pMenu´〃GetSubMenu��i���察�

#0040                  bFound = TRUE�察�

#0041                  ASSERT��pSubMenu ��= NULL���察�

#0042              �� 

#0043          �� 

#0044 

#0045          CString strTipMenu�察�

#0046          strTipMenu。LoadString��CG_IDS_TIPOFTHEDAYMENU���察�

#0047          if �┌�bFound�� 

#0048          �� 

#0049              // Help menu is not available。 Please add it� �

#0050              if ��pSubMenu == NULL�� 

#0051              �� 

#0052                  // The same pop´up menu is shared between mainfrm and 

frame 

#0053                  // with the doc。 

#0054                  static CMenu popUpMenu�察�

#0055                  pSubMenu = &popUpMenu�察�

#0056                  pSubMenu´〃CreatePopupMenu�┌��察�

#0057                  pSubMenu´〃InsertMenu��0�察�MF_STRING��MF_BYPOSITION�察�

#0058                          CG_IDS_TIPOFTHEDAY�察�strTipMenu���察�

#0059              �� 

#0060              pMenu´〃AppendMenu��MF_STRING��MF_BYPOSITION��MF_ENABLED��MF_POPUP�察�



                                                                                                  807 


´´´´´´´´´´´´´´´´´´´´´´Page 870´´´´´´´´´´´´´´´´´´´´´´´

                    及鐙    侮秘  MFC  殻塀�O�� 



                    #0061                      ��UINT��pSubMenu´〃m_hMenu�察�strHelp���察�

                    #0062              DrawMenuBar�┌��察�

                    #0063          �� 

                    #0064          else 

                    #0065          �� 

                    #0066              // Check to see if the Tip of the Day menu has already been 

                    added。 

                    #0067              pSubMenu´〃GetMenuString��0�察�strMenu�察�MF_BYPOSITION���察�

                    #0068 

                    #0069              if ��strMenu ��= strTipMenu�� 

                    #0070              �� 

                    #0071                  // Tip of the Day submenu has not been added to the 

                    #0072                  // first position�察�so add it。 

                    #0073                  pSubMenu´〃InsertMenu��0�察�MF_BYPOSITION���察 �// Separator 

                    #0074                  pSubMenu´〃InsertMenu��0�察�MF_STRING��MF_BYPOSITION�察�

                    #0075                          CG_IDS_TIPOFTHEDAY�察�strTipMenu���察�

                    #0076              �� 

                    #0077          �� 

                    #0078      �� 

                    #0080  �� 



                    SPLASH。H ��畠仟�犯檗。� 



                    #0001  // CG�此�This file was added by the Splash Screen ponent。 

                    #0002 

                    #0003  #ifndef _SPLASH_SCRN_ 

                    #0004  #define _SPLASH_SCRN_ 

                    #0005 

                    #0006  // Splash。h �此�header file 

                    #0007 

                    #0008  ///////////////////////////////////////////////////////////////// 

                    #0009  //   Splash Screen class 

                    #0010 

                    #0011  class CSplashWnd �此�public CWnd 

                    #0012  �� 

                    #0013  // Construction 

                    #0014  protected�此�

                    #0015          CSplashWnd�┌��察�

                    #0016 

                    #0017  // Attributes�此�

                    #0018  public�此�

                    #0019          CBitmap m_bitmap�察�

                    #0020 

                    #0021  // Operations 

                    #0022  public�此�

                    #0023          static void EnableSplashScreen��BOOL bEnable = TRUE���察�



808 


´´´´´´´´´´´´´´´´´´´´´´Page 871´´´´´´´´´´´´´´´´´´´´´´´

                            16                           ponents & ActiveX Controls 

                         及 嫗 嫋��議主芋 聞喘 



#0024          static void ShowSplashScreen��CWnd* pParentWnd = NULL���察�

#0025          static BOOL PreTranslateAppMessage��MSG* pMsg���察�

#0026 

#0027  // Overrides 

#0028          // ClassWizard generated virtual function overrides 

#0029          //����AFX_VIRTUAL��CSplashWnd�� 

#0030          //����AFX_VIRTUAL 

#0031 

#0032  // Implementation 

#0033  public�此�

#0034          ~CSplashWnd�┌��察�

#0035          virtual void PostNcDestroy�┌��察�

#0036 

#0037  protected�此�

#0038          BOOL Create��CWnd* pParentWnd = NULL���察�

#0039          void HideSplashScreen�┌��察�

#0040          static BOOL c_bShowSplashWnd�察�

#0041          static CSplashWnd* c_pSplashWnd�察�

#0042 

#0043  // Generated message map functions 

#0044  protected�此�

#0045          //����AFX_MSG��CSplashWnd�� 

#0046          afx_msg int OnCreate��LPCREATESTRUCT lpCreateStruct���察�

#0047          afx_msg void OnPaint�┌��察�

#0048          afx_msg void OnTimer��UINT nIDEvent���察�

#0049          //����AFX_MSG 

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