-
MFC简单画图程序Draw
这个画图小程序是在 VS2012环境下编写的 MFC 单文档程序, 压缩包内含程序设计详细说明。
功能概述
通过在菜单中选择不同的形状,可以实现画直线、矩形、椭圆以及鼠标按下时随着鼠标移动划线以及橡皮擦功能,
线条粗细、颜色也可以在菜单中调整。
设计思路
通过对菜单的响应获取绘图类型、颜色和线条粗细程度。
通过 CPen 类更改画笔颜色和粗细或将画笔改为橡皮擦,
通过 CDC 类的成员函数 MoveTo( int x, int y ); LineTo( int x, int y ); Rectangle( int x1, int y1, int x2, int y2 ); Ellipse( int x1, int y1, int x2, int y2 ); 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-18 10:23:50下载
- 积分:1
-
Visual Basic 编写,桌面图标文字背景为透明色
Visual Basic 编写,桌面图标文字背景为透明色-Visual Basic preparation, desktop icon transparent text background color
- 2022-05-11 02:41:24下载
- 积分:1
-
MPU6050六轴传感器实验
内部编写了MPU6050的驱动程序,以KEIL作为编程平台,注释极为详细,开源式的代码,是为初学者准备的一个极为有用的学习平台
- 2023-01-28 01:40:04下载
- 积分:1
-
一个紧凑的代理人(编译压缩约5K),模式是一个多线程
a compact agents (compiled compressed about 5K), the mode is a multithreaded
- 2022-12-08 13:05:03下载
- 积分:1
-
浏览器风格按钮使用例子
浏览器风格按钮使用例子 -浏览器风格按钮使用例子浏览器风格按钮使用例子
- 2022-01-28 15:00:44下载
- 积分:1
-
A standard USB design specifications, is limited to studying purposes, shall not...
标准的USB设计规范,仅限于学习用途,概不负责-A standard USB design specifications, is limited to studying purposes, shall not be responsible for
- 2022-10-26 11:10:03下载
- 积分:1
-
此程序是一个简单的代码语法分析程序,检验程序是否符合语法规则...
此程序是一个简单的代码语法分析程序,检验程序是否符合语法规则-This procedure code is a simple grammar analysis program, inspection procedures are in line with the rules of grammar
- 2022-04-06 17:25:20下载
- 积分:1
-
一个有delphi写的
一个五笔查寻程序
一个有delphi写的
一个五笔查寻程序-a write a five search procedures
- 2022-03-20 14:28:13下载
- 积分:1
-
纸牌,VTM越南,这是执行文件
Solitaire, VTM Vietnam, This is execute file
- 2023-09-06 01:00:04下载
- 积分:1
-
LCS问题就是求两个字符串最长公共子串的问题。解法就是用一个矩阵来记录两个字符串中所有位置的两个字符之间的匹配情况,若是匹配则为1,否则为0。然后求出对角线最长...
LCS问题就是求两个字符串最长公共子串的问题。解法就是用一个矩阵来记录两个字符串中所有位置的两个字符之间的匹配情况,若是匹配则为1,否则为0。然后求出对角线最长的1序列,其对应的位置就是最长匹配子串的位置。 最长递增子序列LCS的实现C源码!-LCS problem for two strings is the longest common sub-string problem. Solution is to use a matrix to record the location of two strings of all the matches between the two characters in the situation, if the match is one, otherwise to 0. And one of the longest diagonal obtained sequence, the location of its corresponding sub-string match is the longest position. The longest increasing sub-sequence source C implementation of the LCS!
- 2022-08-19 18:20:36下载
- 积分:1