VC6.0_MFC画图小demo源码

  • d9_234670
    了解作者
  • 10.7MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-14 14:02
    上传日期
学习C++和MFC的时候用VC6.0写的一个画图的demo小程序,主要总结一下MFC最基础的语法,实现了画线条,矩形,椭圆以及颜色,线条粗细,线条类型的设置 和 文字的输出,字体设置,光标位置调整,工具栏创建与显示等,新学习MFC的童鞋可以看看。
VC6.0_MFC画图小DEMO.rar
  • Graphic
  • Graphic.plg
    1.8KB
  • Graph.h
    710B
  • SXBtn.h
    1.2KB
  • res
  • toolbar1.bmp
    838B
  • Graphic.rc2
    399B
  • Toolbar.bmp
    1.1KB
  • Zip File.ico
    3.6KB
  • Koala.bmp
    2.3MB
  • Graphic.ico
    1.1KB
  • GraphicDoc.ico
    1.1KB
  • News.ico
    3.6KB
  • User.ico
    3.6KB
  • Graphic.clw
    3.5KB
  • BtnST.cpp
    21.7KB
  • TestBtn.h
    1.2KB
  • GraphicDoc.cpp
    1.7KB
  • Graphic.dsp
    5.6KB
  • Graphic.opt
    51.5KB
  • GraphicView.cpp
    14.5KB
  • Graphic.cpp
    4.2KB
  • SettingDlg.h
    1.6KB
  • Graphic.aps
    2.3MB
  • Graphic.dsw
    539B
  • StdAfx.cpp
    209B
  • MainFrm.cpp
    4.7KB
  • resource.h
    1.7KB
  • Graphic.h
    1.3KB
  • SettingDlg.cpp
    3.7KB
  • MainFrm.h
    1.7KB
  • StdAfx.h
    1KB
  • SXBtn.cpp
    2.1KB
  • Graph.cpp
    823B
  • GraphicView.h
    2.9KB
  • Graphic.ncb
    73KB
  • BtnST.h
    6.4KB
  • Debug
  • Graphic.ilk
    3.8MB
  • StdAfx.obj
    103.5KB
  • BtnST.obj
    54.2KB
  • GraphicView.obj
    62.7KB
  • GraphicDoc.obj
    13.6KB
  • Graphic.exe
    4.8MB
  • Graph.sbr
    0B
  • SXBtn.obj
    12.5KB
  • Graphic.bsc
    3.6MB
  • Graphic.obj
    21.7KB
  • vc60.idb
    233KB
  • SettingDlg.obj
    21.5KB
  • TestBtn.obj
    11.3KB
  • Graphic.pdb
    4.1MB
  • Graph.obj
    5.1KB
  • GraphicView.sbr
    0B
  • StdAfx.sbr
    1.3MB
  • MainFrm.sbr
    0B
  • Graphic.res
    2.3MB
  • vc60.pdb
    396KB
  • TestBtn.sbr
    0B
  • Graphic.sbr
    0B
  • MainFrm.obj
    24.3KB
  • BtnST.sbr
    0B
  • SXBtn.sbr
    0B
  • SettingDlg.sbr
    0B
  • Graphic.pch
    6.6MB
  • GraphicDoc.sbr
    0B
  • GraphicDoc.h
    1.5KB
  • TestBtn.cpp
    1.5KB
  • Graphic.rc
    13.7KB
  • ReadMe.txt
    4.2KB
内容介绍
======================================================================== MICROSOFT FOUNDATION CLASS LIBRARY : Graphic ======================================================================== AppWizard has created this Graphic application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the files that make up your Graphic application. Graphic.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. Graphic.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CGraphicApp application class. Graphic.cpp This is the main application source file that contains the application class CGraphicApp. Graphic.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. Graphic.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions. res\Graphic.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file Graphic.rc. res\Graphic.rc2 This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file. ///////////////////////////////////////////////////////////////////////////// For the main frame window: MainFrm.h, MainFrm.cpp These files contain the frame class CMainFrame, which is derived from CFrameWnd and controls all SDI frame features. res\Toolbar.bmp This bitmap file is used to create tiled images for the toolbar. The initial toolbar and status bar are constructed in the CMainFrame class. Edit this toolbar bitmap using the resource editor, and update the IDR_MAINFRAME TOOLBAR array in Graphic.rc to add toolbar buttons. ///////////////////////////////////////////////////////////////////////////// AppWizard creates one document type and one view: GraphicDoc.h, GraphicDoc.cpp - the document These files contain your CGraphicDoc class. Edit these files to add your special document data and to implement file saving and loading (via CGraphicDoc::Serialize). GraphicView.h, GraphicView.cpp - the view of the document These files contain your CGraphicView class. CGraphicView objects are used to view CGraphicDoc objects. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named Graphic.pch and a precompiled types file named StdAfx.obj. Resource.h This is the standard header file, which defines new resource IDs. Microsoft Visual C++ reads and updates this file. ///////////////////////////////////////////////////////////////////////////// Other notes: AppWizard uses "TODO:" to indicate parts of the source code you should add to or customize. If your application uses MFC in a shared DLL, and your application is in a language other than the operating system's current language, you will need to copy the corresponding localized resources MFC42XXX.DLL from the Microsoft Visual C++ CD-ROM onto the system or system32 directory, and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation. For example, MFC42DEU.DLL contains resources translated to German.) If you don't do this, some of the UI elements of your application will remain in the language of the operating system. /////////////////////////////////////////////////////////////////////////////
评论
    相关推荐
    • MFC小程序FeiQ
      MFC写的FeiQ软件,主要完成了文件传输和局域网聊天(私聊和群聊)功能。对月学习和了解MFC很实用
    • mfc小程序 实现一些控件
      mfc 小程序 一些控件的综合使用 mfc实现
    • mfc小程序vs2008
      vs2008学习过程中的小程序是关于mfc中菜单栏的绘制的
    • 数字时钟 MFC小程序
      利用DTP控件显示系统当前时间的小程序,可以修改时间。
    • MFC小程序,简单追踪
      简单追踪,用MFC写的一个追踪小程序,实现两点对一点的追踪,简单的实现
    • MFC 小程序
      这是一个对话框MFC程序,可以添加记录,并打开程序......希望对大家的MFC学习有一定的帮助.....
    • VC++ MFC小程序
      对listbox 以及combo 的综合运用
    • 连连看MFC小程序
      给予MFC的连连看小程序,程序编写简单易懂,有益于初学者学习。
    • MFC小程序 时间提醒工具
      基于vs2010开发的一个MFC时间提醒工具,用到的都是一些MFC的基础功能,还可以隐藏到托盘区,初学者可以看一看.
    • MFC 小程序 VC++
      这个小程序很有用,很有利用价值!希望能够对大家有所帮助!