-
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
-
ecos驱动文档,不错的操作系统eCos_drv.rar
ecos驱动文档,不错的操作系统eCos_drv.rar-eCos driver files, a good operating system eCos_drv.rar
- 2023-08-29 04:40:03下载
- 积分:1
-
基于S函数的BP神经网络PID控制器及Simulink仿真
神经网络控制,基于matlab编程算法。可以学习借鉴使用(Neural network control, based on MATLAB programming algorithm. You can learn from it.)
- 2020-11-11 15:09:45下载
- 积分:1
-
发送邮件
php发邮件程序,运行sendmail.php就可以了-send mail
- 2022-02-05 05:05:47下载
- 积分:1
-
picPPT
这是一个关于PIC系列单片机及CPLD等的相关学习资料。方便大家了解不同系列的微控制器件。(This is a study on PIC MCU and CPLD and other relevant learning materials. To facilitate a better understanding of different series of micro-control devices.)
- 2009-02-01 10:48:23下载
- 积分:1
-
hacker_ebook
黑客对不起系列 深入非法下载, 本书的介绍会让读者充分了解,如何才能下载到最新的东西?(Sorry, in-depth series of hacker illegally download, the book' s introduction makes the reader fully understand how to download the latest things?)
- 2010-02-01 17:36:54下载
- 积分:1
-
JJ
说明: 线性矩阵不等式求解的一个例子,通常用于系统控制中用来求未知矩阵(Solution of Linear Matrix Inequality)
- 2018-12-11 20:13:32下载
- 积分:1
-
1024188393.zip
说明: 直流电动机驱动控制集成电路L293D简介,希望对大家有帮助(DC motor driver IC L293D control profiles, we hope to help)
- 2009-08-19 07:48:31下载
- 积分:1
-
Matlab图形图像处理函数详细列表 Matlab图形图像处理函数详细列表...
Matlab图形图像处理函数详细列表 Matlab图形图像处理函数详细列表-Matlab graphics image processing functions in detail a list of Matlab graphics image processing function of a detailed list of Matlab graphics image processing function of a detailed list of
- 2023-01-03 05:55:04下载
- 积分:1
-
TDC-GP22官方例程
TDC官方例程,基于stm32,有各种手册资料,有源码(Official TDC routine)
- 2020-12-07 15:19:21下载
- 积分:1