ReadMe.txt 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ================================================================================
  2. MICROSOFT FOUNDATION CLASS LIBRARY : mfc1 Project Overview
  3. ===============================================================================
  4. The application wizard has created this mfc1 application for
  5. you. This application not only demonstrates the basics of using the Microsoft
  6. Foundation Classes but is also a starting point for writing your application.
  7. This file contains a summary of what you will find in each of the files that
  8. make up your mfc1 application.
  9. mfc1.vcproj
  10. This is the main project file for VC++ projects generated using an application wizard.
  11. It contains information about the version of Visual C++ that generated the file, and
  12. information about the platforms, configurations, and project features selected with the
  13. application wizard.
  14. mfc1.h
  15. This is the main header file for the application. It includes other
  16. project specific headers (including Resource.h) and declares the
  17. Cmfc1App application class.
  18. mfc1.cpp
  19. This is the main application source file that contains the application
  20. class Cmfc1App.
  21. mfc1.rc
  22. This is a listing of all of the Microsoft Windows resources that the
  23. program uses. It includes the icons, bitmaps, and cursors that are stored
  24. in the RES subdirectory. This file can be directly edited in Microsoft
  25. Visual C++. Your project resources are in 1033.
  26. res\mfc1.ico
  27. This is an icon file, which is used as the application's icon. This
  28. icon is included by the main resource file mfc1.rc.
  29. res\mfc1.rc2
  30. This file contains resources that are not edited by Microsoft
  31. Visual C++. You should place all resources not editable by
  32. the resource editor in this file.
  33. mfc1.reg
  34. This is an example .reg file that shows you the kind of registration
  35. settings the framework will set for you. You can use this as a .reg
  36. file to go along with your application or just delete it and rely
  37. on the default RegisterShellFileTypes registration.
  38. /////////////////////////////////////////////////////////////////////////////
  39. For the main frame window:
  40. The project includes a standard MFC interface.
  41. MainFrm.h, MainFrm.cpp
  42. These files contain the frame class CMainFrame, which is derived from
  43. CMDIFrameWnd and controls all MDI frame features.
  44. res\Toolbar.bmp
  45. This bitmap file is used to create tiled images for the toolbar.
  46. The initial toolbar and status bar are constructed in the CMainFrame
  47. class. Edit this toolbar bitmap using the resource editor, and
  48. update the IDR_MAINFRAME TOOLBAR array in mfc1.rc to add
  49. toolbar buttons.
  50. /////////////////////////////////////////////////////////////////////////////
  51. For the child frame window:
  52. ChildFrm.h, ChildFrm.cpp
  53. These files define and implement the CChildFrame class, which
  54. supports the child windows in an MDI application.
  55. /////////////////////////////////////////////////////////////////////////////
  56. The application wizard creates one document type and one view:
  57. mfc1Doc.h, mfc1Doc.cpp - the document
  58. These files contain your Cmfc1Doc class. Edit these files to
  59. add your special document data and to implement file saving and loading
  60. (via Cmfc1Doc::Serialize).
  61. The Document will have the following strings:
  62. File extension: mf1
  63. File type ID: mfc1.Document
  64. Main frame caption: mfc1
  65. Doc type name: mfc1
  66. Filter name: mfc1 Files (*.mf1)
  67. File new short name: mfc1
  68. File type long name: mfc1.Document
  69. mfc1View.h, mfc1View.cpp - the view of the document
  70. These files contain your Cmfc1View class.
  71. Cmfc1View objects are used to view Cmfc1Doc objects.
  72. res\mfc1Doc.ico
  73. This is an icon file, which is used as the icon for MDI child windows
  74. for the Cmfc1Doc class. This icon is included by the main
  75. resource file mfc1.rc.
  76. /////////////////////////////////////////////////////////////////////////////
  77. Other Features:
  78. ActiveX Controls
  79. The application includes support to use ActiveX controls.
  80. Printing and Print Preview support
  81. The application wizard has generated code to handle the print, print setup, and print preview
  82. commands by calling member functions in the CView class from the MFC library.
  83. /////////////////////////////////////////////////////////////////////////////
  84. Other standard files:
  85. StdAfx.h, StdAfx.cpp
  86. These files are used to build a precompiled header (PCH) file
  87. named mfc1.pch and a precompiled types file named StdAfx.obj.
  88. Resource.h
  89. This is the standard header file, which defines new resource IDs.
  90. Microsoft Visual C++ reads and updates this file.
  91. mfc1.manifest
  92. Application manifest files are used by Windows XP to describe an applications
  93. dependency on specific versions of Side-by-Side assemblies. The loader uses this
  94. information to load the appropriate assembly from the assembly cache or private
  95. from the application. The Application manifest maybe included for redistribution
  96. as an external .manifest file that is installed in the same folder as the application
  97. executable or it may be included in the executable in the form of a resource.
  98. /////////////////////////////////////////////////////////////////////////////
  99. Other notes:
  100. The application wizard uses "TODO:" to indicate parts of the source code you
  101. should add to or customize.
  102. If your application uses MFC in a shared DLL, and your application is in a
  103. language other than the operating system's current language, you will need
  104. to copy the corresponding localized resources MFC70XXX.DLL from the Microsoft
  105. Visual C++ CD-ROM under the Win\System directory to your computer's system or
  106. system32 directory, and rename it to be MFCLOC.DLL. ("XXX" stands for the
  107. language abbreviation. For example, MFC70DEU.DLL contains resources
  108. translated to German.) If you don't do this, some of the UI elements of
  109. your application will remain in the language of the operating system.
  110. /////////////////////////////////////////////////////////////////////////////