Description: 类似于windows的画图板,基于MFC框架,能够实现文件的保存和读取,画点线圆矩形等,可设置线宽,线形和颜色-Similar to the windows of the drawing board, based on the MFC framework, can be achieved to save the file and read, draw points and lines circle rectangle and so on, you can set line width, linear and color Platform: |
Size: 104448 |
Author:wangyifei |
Hits:
Description: VC++应用程序开发作业2——画图程序
一. 作业要求:
要求使用文档/视图模式开发。
对于文档处理要求具有保存和打开功能,文件扩展名为(.line)。
要求能处理三种图形的加载和保存工作,这三种图形分别为线、矩形和椭圆,并且能在视图中正确的显示出这些图形。(对于每一个图形除了有一些基本信息外,要能有颜色和线宽信息)
对每一种图形的对象要求采用链表处理,可以分别建立三个链表来分别处理这三种图形。(MFC中的链表类有CPtrList、CTypedPtrList等,建议采用CTypedPtrList,注意这些链表类都是指针链表类,即存储的是对象的指针)-VC++ application development Assignment 2- Paint program. Job requirements: requires the use of the document/view model development. Save and open functions for document processing requirements, the file extension (. Line). Requirements to deal with three kinds of graphics to load and save work, these three graphics lines, rectangles and ellipses, and display these graphics in the view. Of each graphic object (for each graphic in addition to some basic information to be able to color and line width information) require the use of a linked list processing, you can create three list to deal with these three graphics. The linked list class (MFC the CPtrList, CTypedPtrList, recommendations to adopt CTypedPtrList note that these lists class are pointers linked list class, that is, storage is a pointer to an object) Platform: |
Size: 3681280 |
Author:李维 |
Hits: