友情提示:如果本网页打开太慢或显示不完整,请尝试鼠标右键“刷新”本网页!
富士康小说网 返回本书目录 加入书签 我的书架 我的书签 TXT全本下载 『收藏到我的浏览器』

深入浅出MFC第2版(PDF格式)-第120部分

快捷操作: 按键盘上方向键 ← 或 → 可快速上下翻页 按键盘上的 Enter 键可回到本书目录页 按键盘上方向键 ↑ 可回到本页顶部! 如果本书没有阅读完,想下次继续接着阅读,可使用上方 "收藏到我的浏览器" 功能 和 "加入书签" 功能!



                   #0194      VK_F6;          ID_PREV_PANE;           VIRTKEY; SHIFT 

                   #0195  END 

                   #0196 

                   #0197 

                   #0198  ///////////////////////////////////////////////////////////////// 

                   #0199  // 

                   #0200  // Dialog 

                   #0201  // 

                   #0202 

                   #0203  IDD_ABOUTBOX DIALOG DISCARDABLE  0; 0; 217; 55 

                   #0204  STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU 

                   #0205  CAPTION 〃About Scribble〃 

                   #0206  FONT 8; 〃MS Sans Serif〃 

                   #0207  BEGIN 

                   #0208      ICON            IDR_MAINFRAME;IDC_STATIC;11;17;20;20 

                   #0209      LTEXT           〃Scribble Version 1。0〃;IDC_STATIC;40;10;119;8 

                   #0210      LTEXT           〃Copyright * 1995〃;IDC_STATIC;40;25;119;8 

                   #0211      DEFPUSHBUTTON   〃OK〃;IDOK;178;7;32;14;WS_GROUP 

                   #0212  END 

                   #0213 

                   #0214  IDD_PEN_WIDTHS DIALOG DISCARDABLE  0; 0; 203; 65 

                   #0215  STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU 

                   #0216  CAPTION 〃Pen Widths〃 

                   #0217  FONT 8; 〃MS Sans Serif〃 

                   #0218  BEGIN 



908 


…………………………………………………………Page 971……………………………………………………………

                                                   附錄B    Scribble Step5  完整原始碼 



#0219      DEFPUSHBUTTON   〃OK〃;IDOK;148;7;50;14 

#0220      PUSHBUTTON      〃Cancel〃;IDCANCEL;148;24;50;14 

#0221      PUSHBUTTON      〃Default〃;IDC_DEFAULT_PEN_WIDTHS;148;41;50;14 

#0222      LTEXT           〃Thin Pen Width:〃;IDC_STATIC;10;12;70;10 

#0223      LTEXT           〃Thick Pen Width:〃;IDC_STATIC;10;33;70;10 

#0224      EDITTEXT        IDC_THIN_PEN_WIDTH;86;12;40;13;ES_AUTOHSCROLL 

#0225      EDITTEXT        IDC_THICK_PEN_WIDTH;86;33;40;13;ES_AUTOHSCROLL 

#0226  END 

#0227 

#0228 

#0229  #ifndef _MAC 

#0230  ///////////////////////////////////////////////////////////////// 

#0231  // 

#0232  // Version 

#0233  // 

#0234 

#0235  VS_VERSION_INFO VERSIONINFO 

#0236   FILEVERSION 1;0;0;1 

#0237   PRODUCTVERSION 1;0;0;1 

#0238   FILEFLAGSMASK 0x3fL 

#0239  #ifdef _DEBUG 

#0240   FILEFLAGS 0x1L 

#0241  #else 

#0242   FILEFLAGS 0x0L 

#0243  #endif 

#0244   FILEOS 0x4L 

#0245   FILETYPE 0x1L 

#0246   FILESUBTYPE 0x0L 

#0247  BEGIN 

#0248      BLOCK 〃StringFileInfo〃 

#0249      BEGIN 

#0250          BLOCK 〃040904B0〃 

#0251          BEGIN 

#0252              VALUE 〃panyName〃; 〃0〃 

#0253              VALUE 〃FileDescription〃; 〃SCRIBBLE MFC Application0〃 

#0254              VALUE 〃FileVersion〃; 〃1; 0; 0; 10〃 

#0255              VALUE 〃InternalName〃; 〃SCRIBBLE0〃 

#0256              VALUE 〃LegalCopyright〃; 〃Copyright * 19950〃 

#0257              VALUE 〃LegalTrademarks〃; 〃0〃 

#0258              VALUE 〃OriginalFilename〃; 〃SCRIBBLE。EXE0〃 

#0259              VALUE 〃ProductName〃; 〃SCRIBBLE Application0〃 

#0260              VALUE 〃ProductVersion〃; 〃1; 0; 0; 10〃 

#0261          END 

#0262      END 

#0263      BLOCK 〃VarFileInfo〃 

#0264      BEGIN 



                                                                                     909 


…………………………………………………………Page 972……………………………………………………………

                   第五篇    附錄  



                   #0265          VALUE 〃Translation〃; 0x409; 1200 

                   #0266      END 

                   #0267  END 

                   #0268 

                   #0269  #endif    // !_MAC 

                   #0270 

                   #0271 

                   #0272  ///////////////////////////////////////////////////////////////// 

                   #0273  // 

                   #0274  // DESIGNINFO 

                   #0275  // 

                   #0276 

                   #0277  #ifdef APSTUDIO_INVOKED 

                   #0278  GUIDELINES DESIGNINFO DISCARDABLE 

                   #0279  BEGIN 

                   #0280      IDD_ABOUTBOX; DIALOG 

                   #0281      BEGIN 

                   #0282          LEFTMARGIN; 7 

                   #0283          RIGHTMARGIN; 210 

                   #0284          TOPMARGIN; 7 

                   #0285          BOTTOMMARGIN; 48 

                   #0286      END 

                   #0287 

                   #0288      IDD_PEN_WIDTHS; DIALOG 

                   #0289      BEGIN 

                   #0290          LEFTMARGIN; 10 

                   #0291          RIGHTMARGIN; 198 

                   #0292          VERTGUIDE; 1 

                   #0293          TOPMARGIN; 7 

                   #0294          BOTTOMMARGIN; 55 

                   #0295      END 

                   #0296  END 

                   #0297  #endif    // APSTUDIO_INVOKED 

                   #0298 

                   #0299 

                   #0300  ///////////////////////////////////////////////////////////////// 

                   #0301  // 

                   #0302  // String Table 

                   #0303  // 

                   #0304 

                   #0305  STRINGTABLE PRELOAD DISCARDABLE 

                   #0306  BEGIN 

                   #0307      IDR_MAINFRAME   〃Scribble Step5〃 

                   #0308      IDR_SCRIBBTYPE  〃nScribbnScribbnScribble Files 

                   (*。scb)n。SCBnScribble。DocumentnScribb Document〃 

                   #0309  END 



910 


…………………………………………………………Page 973……………………………………………………………

                                                   附錄B    Scribble Step5  完整原始碼 



#0310 

#0311  STRINGTABLE PRELOAD DISCARDABLE 

#0312  BEGIN 

#0313      AFX_IDS_APP_TITLE       〃Scribble〃 

#0314      AFX_IDS_IDLEMESSAGE     〃Ready〃 

#0315  END 

#0316 

#0317  STRINGTABLE DISCARDABLE 

#0318  BEGIN 

#0319      ID_INDICATOR_EXT        〃EXT〃 

#0320      ID_INDICATOR_CAPS       〃CAP〃 

#0321      ID_INDICATOR_NUM        〃NUM〃 

#0322      ID_INDICATOR_SCRL       〃SCRL〃 

#0323      ID_INDICATOR_OVR        〃OVR〃 

#0324      ID_INDICATOR_REC        〃REC〃 

#0325  END 

#0326 

#0327  STRINGTABLE DISCARDABLE 

#0328  BEGIN 

#0329    ID_FILE_NEW           〃Create a new documentnNew〃 

#0330    ID_FILE_OPEN          〃Open an existing documentnOpen〃 

#0331    ID_FILE_CLOSE         〃Close the active documentnClose〃 

#0332    ID_FILE_SAVE          〃Save the active documentnSave〃 

#0333    ID_FILE_SAVE_AS       〃Save the active document with a new namenSave As〃 

#0334    ID_FILE_PAGE_SETUP    〃Change the printing optionsnPage Setup〃 

#0335    ID_FILE_PRINT_SETUP   〃Change the printer and printing optionsnPrint Setup〃 

#0336    ID_FILE_PRINT         〃Print the active documentnPrint〃 

#0337    ID_FILE_PRINT_PREVIEW 〃Display full pagesnPrint Preview〃 

#0338    ID_FILE_SEND_MAIL     〃Send the active document through electronic 

mailnSend Mail〃 

#0339  END 

#0340 

#0341  STRINGTABLE DISCARDABLE 

#0342  BEGIN 

#0343    ID_APP_ABOUT  〃Display program information; version No。 and copyrightnAbout〃 

#0344    ID_APP_EXIT   〃Quit the application; prompts to save documentsnExit〃 

#0345  END 

#0346 

#0347  STRINGTABLE DISCARDABLE 

#0348  BEGIN 

#0349      ID_FILE_MRU_FILE1     〃Open this document〃 

#0350      ID_FILE_MRU_FILE2     〃Open this document〃 

#0351      ID_FILE_MRU_FILE3     〃Open this document〃 

#0352      ID_FILE_MRU_FILE4     〃Open this document〃 

#0353  END 

#0354 



                                                                                     911 


…………………………………………………………Page 974……………………………………………………………

                   第五篇    附錄  



                   #0355  STRINGTABLE DISCARDABLE 

                   #0356  BEGIN 

                   #0357      ID_NEXT_PANE          〃Switch to the next window panenNext Pane〃 

                   #0358      ID_PREV_PANE          〃Switch back to the previous window panenPrevious Pane〃 

                   #0359  END 

                   #0360 

                   #0361  STRINGTABLE DISCARDABLE 

                   #0362  BEGIN 

                   #0363    ID_WINDOW_NEW      〃Open another window for the active documentnNew Window〃 

                   #0364    ID_WINDOW_ARRANGE 〃Arrange icons at the bottom of the windownArrange Icons〃 

                   #0365    ID_WINDOW_CASCADE 〃Arrange windows so they overlapnCascade Windows〃 

                   #0366    ID_WINDOW_TILE_HORZ  〃Arrange windows as non…overlapping tilesnTile Windows〃 

                   #0367    ID_WINDOW_TILE_VERT  〃Arrange windows as non…overlapping tilesnTile Windows〃 

                   #0368    ID_WINDOW_SPLIT       〃Split the active window into panesnSplit〃 

                   #0369  END 

                   #0370 

                   #0371  STRINGTABLE DISCARDABLE 

                   #0372  BEGIN 

                   #0373      ID_EDIT_CLEAR         〃Erase the selectionnErase〃 

                   #0374      ID_EDIT_CLEAR_ALL     〃Clears the drawing〃 

                   #0375      ID_EDIT_COPY          〃Copy the selection and put it on the ClipboardnCopy〃 

                   #0376      ID_EDIT_CUT           〃Cut the selection and put it on the ClipboardnCut〃 

                   #0377      ID_EDIT_FIND          〃Find the specified textnFind〃 

                   #0378      ID_EDIT_PASTE         〃Insert Clipboard contentsnPaste〃 

                   #0379      ID_EDIT_REPEAT        〃Repeat the last actionnRepeat〃 

                   #0380      ID_EDIT_REPLACE       〃Replace specific text with different textnReplace〃 

                   #0381      ID_EDIT_SELECT_ALL    〃Select the entire documentnSelect All〃 

                   #0382      ID_EDIT_UNDO          〃Undo the last actionnUndo〃 

                   #0383      ID_EDIT_REDO          〃Redo the previously undone actionnRedo〃 

                   #0384  END 

                   #0385 

                   #0386  STRINGTABLE DISCARDABLE 

                   #0387  BEGIN 

                   #0388      ID_VIEW_TOOLBAR       〃Show or hide the toolbarnToggle ToolBar〃 

                   #0389      ID_VIEW_STATUS_BAR    〃Show or hide the status barnToggle StatusBar〃 

                   #0390  END 

                   #0391 

                   #0392  STRINGTABLE DISCARDABLE 

                   #0393  BEGIN 

                   #0394      AFX_IDS_SCSIZE        〃Change the window size〃 

                   #0395      AFX_IDS_SCMOVE        〃Change the window position〃 

                   #0396      AFX_IDS_SCMINIMIZE    〃Reduce the window to an icon〃 

                   #0397      AFX_IDS_SCMAXIMIZE    〃Enlarge the window to full size〃 

                   #0398      AFX_IDS_SCNEXTWINDOW  〃Switch to the next document window〃 

                   #0399      AFX_IDS_SCPREVWINDOW  〃Switch to the previous document window〃 

                   #0400      AFX_IDS_SCCLOSE  〃Close the active window and prompts to save the documents〃 



912 


…………………………………………………………Page 975……………………………………………………………

                                                   附錄B    Scribble Step5  完整原始碼 



#0401  END 

#0402 

#0403  STRINGTABLE DISCARDABLE 

#0404  BEGIN 

#0405      AFX_IDS_SCRESTORE     〃Restore the window to normal size〃 

#0406      AFX_IDS_SCTASKLIST    〃Activate Task List〃 

#0407      AFX_IDS_MDICHILD      〃Activate this window〃 

#0408  END 

#0409 

#0410  STRINGTABLE DISCARDABLE 

#0411  BEGIN 

#0412      AFX_IDS_PREVIEW_CLOSE 〃Close print preview modenCancel Preview〃 

#0413  END 

#0414 

#0415  STRINGTABLE DISCARDABLE 

#0416  BEGIN 

#0417      AFX_IDS_DESKACCESSORY 〃Opens the selected item〃 

#0418  END 

#0419 

#0420  STRINGTABLE DISCARDABLE 

#0421  BEGIN 

#0422      ID_PEN_THICK_OR_THIN  〃Toggles the line thickness between thin and 

thicknToggle pen〃 

#0423      ID_PEN_WIDTHS         〃Sets the size of the thin and thick pen〃 

#0424  END 

#0425 

#0426  #endif    // English (U。S。) resources 

#0427  ///////////////////////////////////////////////////////////////// 

#0428 

#0429 

#0430 

#0431  #ifndef APSTUDIO_INVOKED 

#0432  ///////////////////////////////////////////////////////////////// 

#0433  // 

#0434  // Generated from the TEXTINCLUDE 3 resource。 

#0435  // 

#0436  #define _AFX_NO_SPLITTER_RESOURCES 

#0437  #define _AFX_NO_OLE_RESOURCES 

#0438  #define _AFX_NO_TRACKER_RESOURCES 

#0439  #define _AFX_NO_PROPERTY_RESOURCES 

#0440 

#0441  #include 〃resScribble。rc2〃  // non…Microsoft Visual C++ edited resources 

#0442  #include 〃afxres。rc〃         // Standard ponents 

#0443  #include 〃afxprint。rc〃       // printing/print preview resources 

#0444 

#0445  #endif    // not APSTUDIO_INVOKED 



                                                                                     913 


…………………………………………………………Page 976……………………………………………………………

                 第五篇    附錄  



914 


…………………………………………………………Page 977……………………………………………………………

                              附錄C    Visual C++ 5。0 範例程式樱А



附錄C 



               Visual C++ 5。0 

           MFC 範例程式一樱А



經過整本書的鍛鍊,我想你已經對於整個  MFC  的架構有了相當紮實的瞭解,對於我所 



謂的「程式設計主軸」已經能夠掌握。接來,就是學習十八般武藝的  MFC classes 。 



Visual C++  附有極為豐富的範例程式,包括各種主睿纾骸



                                                       915 


…………………………………………………………Page 978……………………………………………………………

                        第五篇    附錄  



                        其使用  MFC  來設計程式的例子極多(其他部份使用  SDK  工具),是個大寶庫。 



                        我把所有以  MFC  開發的範例程式以字母為序,列於表供你參考。 



                        程式名稱               說明 



                        ACDUAL             Demonstrates how to add dual interface support to an MFC…based 

                                           Automation server。 



                        AUTOCLIK           Tutorial example illustrating Automation features in Visual C++ Tutorials。 



                        AUTODRIV           A simple Automation client application that drives the AUTOCLIK tutorial 

                                           sample application。 



                        BINDENRL           Databound controls in a dialog…based application with property pages。 



                        BINDSCRB           Illustration of the use of new  interfaces to ponents currently 

                                           supported by the Microsoft Office suite of products。 



                        CALCDRIV           Automation client。 



                        CATALOG            Illustration of d
返回目录 上一页 下一页 回到顶部 9 10
快捷操作: 按键盘上方向键 ← 或 → 可快速上下翻页 按键盘上的 Enter 键可回到本书目录页 按键盘上方向键 ↑ 可回到本页顶部!
温馨提示: 温看小说的同时发表评论,说出自己的看法和其它小伙伴们分享也不错哦!发表书评还可以获得积分和经验奖励,认真写原创书评 被采纳为精评可以获得大量金币、积分和经验奖励哦!