-
VC++ 6.0简单屏幕画笔源代码
VC++ 6.0简单屏幕画笔源代码 ,可以让用户直接在屏幕的任意地方写字,仿画图的功能,不过这个不是在指定的画图窗口中才能画出图形,而是打开后,在屏幕的任意地方都可以。而且还可以设置画笔的颜色,有四种颜色可选,还可设置画笔粗细等功能。以下请看画笔的设置部分代码:
void CMyWnd::OnRed()//选中绿色
{
ColorX=255;
ColorY=0;
ColorZ=0;
}
void CMyWnd::OnYellow()//选中黄色
{
ColorX=255;
ColorY=255;
ColorZ=0;
}
void CMyWnd::OnGreen() //选中绿色
{
ColorX=0;
ColorY=255;
ColorZ=0;
}
void CMyWnd::OnBlue() //选中蓝色
{
ColorX=0;
ColorY=0;
ColorZ=255;
}
void CMyWnd::OnAdd() //增加画笔大小
{
ADxy+=1;
}
void CMyWnd::OnDec() //增加画笔大小
{
if (ADxy!=1)
ADxy-=1;
}
void CMyWnd::OnAbout() //增加画笔大小
{
//AfxMessageBox("你好");
//显示关于对话框
CLjxDlg dlg;
int xxx=dlg.DoModal();
}
- 2022-11-18 14:20:03下载
- 积分:1
-
FOC控制理论(超好)
电机控制FOC算法理论,简单易懂,初学首选。(The theory of FOC algorithm for motor control is simple and easy to understand. First choice for beginners.)
- 2021-04-27 13:08:44下载
- 积分:1
-
LS-DYNA使用指南中文版本
ls-dyan 中文使用指南,帮助大家熟悉ls-dyan(Ls-dyan Chinese Use Guide)
- 2019-01-15 08:22:56下载
- 积分:1
-
基于CSplashWnd的VC++窗体启动效果
基于CSplashWnd的VC++窗体启动效果,本框架程序是用来测试CSplashWnd,如果你没有看见Splash画面,可能是因为图片文件不存在。请将根目录下的fx.jpg拷贝到Debug目录下,这样就能看到启动画面效果了,是不是很棒?
下面有一个带动画效果的启动窗体,也可参考:
VC++在启动窗口时显示动画效果和文字渐变
- 2023-03-26 13:15:04下载
- 积分:1
-
An image and text into a transparent process sample. Pb use.
一个使图片和文本变成透明的程序示例.pb中使用.-An image and text into a transparent process sample. Pb use.
- 2023-02-28 10:25:04下载
- 积分:1
-
ISING MODEL模拟磁滞回线,用FORTRAN软件包打开
ISING MODEL模拟磁滞回线,用FORTRAN软件包打开-ISING MODEL simulated hysteresis loop with a FORTRAN software package to open
- 2023-07-23 00:00:02下载
- 积分:1
-
FillPolygon
MFC 实现多边形的填充,填充颜色可以调整(MFC to achieve polygon fill, transparent settings)
- 2021-01-14 00:18:47下载
- 积分:1
-
RecommenderSystem
集体智慧编程中第十章推荐算法,实现源码,python实现(Tenth chapters of the collective wisdom programming to implement the source code)
- 2018-03-29 12:01:35下载
- 积分:1
-
dds
dds->9954的pcb供大家参考,这个扳子我调通了的可以放心开办-dds-
- 2022-04-25 18:01:01下载
- 积分:1
-
code
说明: 实现无人机通信考虑的轨迹规划,综合通信中的能量消耗和轨迹进行权衡(Realize the trajectory planning of UAV Communication, and balance the energy consumption and trajectory in communication)
- 2020-02-11 23:16:52下载
- 积分:1