这是一个简单的绘图程序,编制该程序的过程包括建立应用程序的基本框 架、处理视图、处理文档、串行化处理、滚动处理、窗口分割、创建对话模板 资源、创建对话类、定义成...
这是一个简单的绘图程序,编制该程序的过程包括建立应用程序的基本框 架、处理视图、处理文档、串行化处理、滚动处理、窗口分割、创建对话模板 资源、创建对话类、定义成员变量、定义消息处理函数、创建对话类对象并显 示对话框以及添加工具栏按钮。 该程序的功能就是在单文档窗口中绘制各种不同线宽(有六种线宽)、不 同风格(有三种风格:实线、划线和点线)和不同颜色的线段。并且具备保存、 恢复、撤消、滚动、窗口分割等功能。 该程序所用到的都是Visual C++最基本、最核心的内容。-This is a simple drawing program, the preparation of the procedures for the establishment of the process, including the application of the basic framework for handling View, documents, serial processing, and rolling, window segmentation, create dialogue template resources, the creation of such a dialogue, the definition member variables, the definition Message Handling Functions to create dialogue and object type dialog box appears and add toolbar button. The procedure is the function of a single document window mapping different width (a six linewidth), the different styles (three styles : solid line, and crossed point line) and different colors segment. And with the preservation, restoration, lifting, rolling, the window segmentation capabilities. The
- 2022-12-02 23:35:03下载
- 积分:1
DXF文件读写接口
供用户直接调用的12个子程序调用:
1、 opendxf(xl,yl,drname,lend)
功能:新建DXF文件,
参数:xl,yl,drname,lend 分别为图幅长、宽、图名、图名长度
注意: 接口库中使用了文件通道号990、991、992、993、998、999,
请在程序中不要重复使用
2、 layer(ca1,nc)
功能:在表段和头段中写层信息,
参数:ca1,nc分别为层名、颜色值
注意:必须先赋层名值:ca1="hjk328" 再调用 call layer(ca1,ic)
不能直接call layer("hjk328",ic)
3、 circle(cx,cy,cz,cr)
功能:画圆
参数:cx,cy,cz,cr 分别为圆心的三维坐标和半径
4、 trace(x1,y1,z1,x2,y2,z2,wh)
功能:画轨迹线
参数:x1,y1,z1,x2,y2,z2,wh 分别为轨迹线中线端点三维坐标及线宽
5、 line(x1,y1,z1,x2,y2,z2)
功能: 画单线
参数:x1,y1,z1,x2,y2,z2 分别为线端点三维坐标
6、 poly(PLX,PLY,PLZ,NV,WH)
功能:画复线
参数:PLX,PLY,PLZ,NV,WH分别为复线各拐点三维坐标、拐点数及线宽
7、 point(x1,y1,z1)
功能:画点
参数:x1,y1,z1分别为点的三维坐标
8、 hz(xxt,yyt,zzt,zzh,rrang,ssca,qxj,cca1,len)
功能:中点对正写单行汉字
参数:xxt,yyt,zzt,zzh,rrang,ssca,qx
- 2022-03-24 02:59:46下载
- 积分:1