登录
首页 » 其他 » VC++ 6.0简单屏幕画笔源代码

VC++ 6.0简单屏幕画笔源代码

于 2022-11-18 发布 文件大小:80.60 kB
0 190
下载积分: 2 下载次数: 1

代码说明:

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();   }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Game modification tools for source code source code for use GamePaladin II* game...
    游戏修改工具源代码 GamePaladin II 源码使用说明 *游戏修改工具(内存高低阶,文件存档高低阶,图象捕捉,游戏记录,收藏夹 *本程序代码遵循源码开放标准"GNU通用公共许可",查看本文件即表示你同意该协议 *用Delphi7开发 *只用到了一个控件hexeditor.pas在SourceVcl下,编译前请安装 -Game modification tools for source code source code for use GamePaladin II* game modification tools (high-low-memory, file archiving of high-level, image capture, game records, favorites* this source code to follow open standards
    2022-02-01 18:29:12下载
    积分:1
  • LFS(linux from scratch)的文档,包括lfs
    LFS(linux from scratch)的文档,包括lfs-6.2,blfs-6.1,lfs-2006-8-3和lfs-book-svn-2006-7-31-LFS (linux from scratch) of documents, including LFS-6.2, blfs- 6.1, LFS-2006-8-3 and the LFS-book-svn-2006-7-31
    2022-01-25 19:47:02下载
    积分:1
  • 用LABVIEW开发的贪吃蛇小游戏,娱乐的同时学习编程思想和方法。...
    用LABVIEW开发的贪吃蛇小游戏,娱乐的同时学习编程思想和方法。-Developed using LABVIEW Snake game and entertainment programming at the same time learning the ideas and methods.
    2022-01-25 19:12:19下载
    积分:1
  • This is a knockout mice similar to the game, I hope you would like to common sen...
    这个也是敲地鼠类似的游戏,希望大家喜欢,来常识一下吧-This is a knockout mice similar to the game, I hope you would like to common sense about it
    2022-10-31 00:45:03下载
    积分:1
  • 停止各色杀毒/防火墙软件进程的批处理
    停止各色杀毒/防火墙软件进程的批处理-Colors stop antivirus/firewall software batch process! ! !
    2022-08-02 20:07:38下载
    积分:1
  • fitting approximation with the C program
    拟合与逼近的C程序-fitting approximation with the C program
    2023-01-15 05:45:03下载
    积分:1
  • vc++ 6.0开发控制台Windows服务监控程序
    vc++6.0 实现基于控制台的Windows服务监控程序,可实现windows服务监控和检测网关程序的侦听端口,运行后请根据CMD窗口的提示操作。if (pstProgNodeBuf->m_nFlag == 2) //连接当前Sgip侦听的端口   {    if (!ConnectSgipServer(pstProgNodeBuf->m_nPort)) //SGIP不正常运行    {    if (!StartUnlimitService(pstProgNodeBuf->m_szServiceName)) //启动该服务    {    sprintf(szLog,"启动该[%s]服务失败",pstProgNodeBuf->m_szServiceName);    WriteLogRecord(szLog);    LogMsg(szLog);    pstProgNodeBuf->m_iRecCount ++ ; //超过2次启动服务失败    if(difftime(tCurrTime,pstProgNodeBuf->tSendShortTime) > 2*60*60 && pstProgNodeBuf->m_iRecCount >= 2) //检测发送短消息时间间隔 (设置值为1个小时即1*60*60秒)    {    CString strSendMessage;    strSendMessage.Format("%s",pstProgNodeBuf->m_szSendMessage);    //发送短消息    //连接服务器,发送内容    //发送短消息
    2022-02-09 22:47:24下载
    积分:1
  • mifare one Ezee zhiliao xuyaodeqingk an
    mifare one zhongwen zhiliao xuyaodeqingkan -mifare one Ezee zhiliao xuyaodeqingk an
    2022-01-26 06:27:29下载
    积分:1
  • 一个用简单的游戏代码,可以下到本机修改下。让它更完美。...
    一个用简单的游戏代码,可以下到本机修改下。让它更完美。-A game with a simple code, you can modify under the circumstances of this machine. Make it more perfect.
    2022-11-09 22:40:03下载
    积分:1
  • 梦想世界虚拟社区
    梦想世界虚拟社区- Vainly hopes for the world hypothesized community
    2022-01-24 18:41:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载