深入浅出MFC第2版(PDF格式)-第179部分
按键盘上方向键 ← 或 → 可快速上下翻页,按键盘上的 Enter 键可回到本书目录页,按键盘上方向键 ↑ 可回到本页顶部!
————未阅读完?加入书签已便下次继续阅读!
#0107 MENUITEM SEPARATOR
#0108 MENUITEM 〃E&xit〃; ID_APP_EXIT
#0109 END
#0110 POPUP 〃&View〃
#0111 BEGIN
#0112 MENUITEM 〃&Toolbar〃; ID_VIEW_TOOLBAR
#0113 MENUITEM 〃&Status Bar〃; ID_VIEW_STATUS_BAR
#0114 END
#0115 POPUP 〃&Help〃
#0116 BEGIN
#0117 MENUITEM 〃&About Scribble。。。〃; ID_APP_ABOUT
#0118 END
#0119 END
#0120
#0121 IDR_SCRIBBTYPE MENU PRELOAD DISCARDABLE
#0122 BEGIN
#0123 POPUP 〃&File〃
#0124 BEGIN
#0125 MENUITEM 〃&NewtCtrl+N〃; ID_FILE_NEW
#0126 MENUITEM 〃&Open。。。tCtrl+O〃; ID_FILE_OPEN
906
…………………………………………………………Page 969……………………………………………………………
附錄B Scribble Step5 完整原始碼
#0127 MENUITEM 〃&Close〃; ID_FILE_CLOSE
#0128 MENUITEM 〃&SavetCtrl+S〃; ID_FILE_SAVE
#0129 MENUITEM 〃Save &As。。。〃; ID_FILE_SAVE_AS
#0130 MENUITEM SEPARATOR
#0131 MENUITEM 〃&Print。。。tCtrl+P〃; ID_FILE_PRINT
#0132 MENUITEM 〃Print Pre&view〃; ID_FILE_PRINT_PREVIEW
#0133 MENUITEM 〃P&rint Setup。。。〃; ID_FILE_PRINT_SETUP
#0134 MENUITEM SEPARATOR
#0135 MENUITEM 〃Sen&d。。。〃; ID_FILE_SEND_MAIL
#0136 MENUITEM SEPARATOR
#0137 MENUITEM 〃Recent File〃; ID_FILE_MRU_FILE1; GRAYED
#0138 MENUITEM SEPARATOR
#0139 MENUITEM 〃E&xit〃; ID_APP_EXIT
#0140 END
#0141 POPUP 〃&Edit〃
#0142 BEGIN
#0143 MENUITEM 〃&UndotCtrl+Z〃; ID_EDIT_UNDO
#0144 MENUITEM SEPARATOR
#0145 MENUITEM 〃Cu&ttCtrl+X〃; ID_EDIT_CUT
#0146 MENUITEM 〃&CopytCtrl+C〃; ID_EDIT_COPY
#0147 MENUITEM 〃&PastetCtrl+V〃; ID_EDIT_PASTE
#0148 MENUITEM 〃Clear &All〃; ID_EDIT_CLEAR_ALL
#0149 END
#0150 POPUP 〃&Pen〃
#0151 BEGIN
#0152 MENUITEM 〃Thick &Line〃; ID_PEN_THICK_OR_THIN
#0153 MENUITEM 〃Pen &Widths。。。〃; ID_PEN_WIDTHS
#0154 END
#0155 POPUP 〃&View〃
#0156 BEGIN
#0157 MENUITEM 〃&Toolbar〃; ID_VIEW_TOOLBAR
#0158 MENUITEM 〃&Status Bar〃; ID_VIEW_STATUS_BAR
#0159 END
#0160 POPUP 〃&Window〃
#0161 BEGIN
#0162 MENUITEM 〃&New Window〃; ID_WINDOW_NEW
#0163 MENUITEM 〃&Cascade〃; ID_WINDOW_CASCADE
#0164 MENUITEM 〃&Tile〃; ID_WINDOW_TILE_HORZ
#0165 MENUITEM 〃&Arrange Icons〃; ID_WINDOW_ARRANGE
#0166 END
#0167 POPUP 〃&Help〃
#0168 BEGIN
#0169 MENUITEM 〃&About Scribble。。。〃; ID_APP_ABOUT
#0170 END
#0171 END
#0172
907
…………………………………………………………Page 970……………………………………………………………
第五篇 附錄
#0173
#0174 /////////////////////////////////////////////////////////////////
#0175 //
#0176 // Accelerator
#0177 //
#0178
#0179 IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE
#0180 BEGIN
#0181 〃N〃; ID_FILE_NEW; VIRTKEY; CONTROL
#0182 〃O〃; ID_FILE_OPEN; VIRTKEY; CONTROL
#0183 〃S〃; ID_FILE_SAVE; VIRTKEY; CONTROL
#0184 〃P〃; ID_FILE_PRINT; VIRTKEY; CONTROL
#0185 〃Z〃; ID_EDIT_UNDO; VIRTKEY; CONTROL
#0186 〃X〃; ID_EDIT_CUT; VIRTKEY; CONTROL
#0187 〃C〃; ID_EDIT_COPY; VIRTKEY; CONTROL
#0188 〃V〃; ID_EDIT_PASTE; VIRTKEY; CONTROL
#0189 VK_BACK; ID_EDIT_UNDO; VIRTKEY; ALT
#0190 VK_DELETE; ID_EDIT_CUT; VIRTKEY; SHIFT
#0191 VK_INSERT; ID_EDIT_COPY; VIRTKEY; CONTROL
#0192 VK_INSERT; ID_EDIT_PASTE; VIRTKEY; SHIFT
#0193 VK_F6; ID_NEXT_PANE; VIRTKEY
#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