登录
首页 » 其他 » VC++透明窗口效果的电子标尺源代码

VC++透明窗口效果的电子标尺源代码

于 2022-03-01 发布 文件大小:48.14 kB
0 165
下载积分: 2 下载次数: 1

代码说明:

VC++透明窗口效果的电子标尺源代码   屏幕测量类:   CMeasure : public CWnd测量基类   方法:    //创建透明窗口,做公共初始化    CreateMeasure(虚拟)    //以当前鼠标点为基准输出信息    virtual void CMeasure::ExportInfo(CString str, CDC *pDC, CPoint point)    //消息处理函数    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);    afx_msg void OnMouseMove(UINT nFlags, CPoint point);    //按下左键时绘图,空    virtual void DrawLButtonDown(UINT nFlags, CPoint point);    //移动鼠标时绘图,绘制十字定位线    virtual void DrawMouseMove(UINT nFlags, CPoint point);   属性:    CDC m_dcMem;保存临时背景供恢复用    CWnd* m_pWndParent;父窗口指针    int m_nScreenWidth;屏幕参数    int m_nScreenHeight;    CPen m_Pen;用于绘图的笔    COLORREF m_colorFont; 用于记录绘图时的元素颜色    COLORREF m_colorTag;    COLORREF m_colorLine;   CMeasureLine : public CMeasure测量两点直线的类   方法:    CreateMeasure(虚拟)    virtual void DrawLButtonDown(UINT nFlags, CPoint point);    virtual void DrawMouseMove(UINT nFlags, CPoint point);   属性:    BOOL m_bSecond;是否是已点击一次

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

发表评论

0 个回复

  • Building a RISC System in an FPGA
    Building a RISC System in an FPGA
    2022-03-12 14:47:56下载
    积分:1
  • 模拟网站登陆,极小型数据库系统
    模拟网站登陆,极小型数据库系统-simulated landing site, a very small database system
    2022-02-02 06:06:57下载
    积分:1
  • Calendar reality program, with the previous procedure was a realistic hope of a...
    日历现实程序,与上一个是一起现实的程序,希望能帮助大家.-Calendar reality program, with the previous procedure was a realistic hope of a helping hand.
    2022-07-25 02:25:45下载
    积分:1
  • 塔防类游戏代码类似王国保卫战
    应用背景塔防类游戏,总共三个关卡,每个关卡三个批次。怪物有两条移动路径,随机选择一条路径移动,怪物有分种类,不同类型怪物属性不同。炮塔有两种,一种是发子弹,一种是射箭。可以升级,出售。游戏主要类有:怪物管理器,英雄管理器,子弹管理器,移动控制器等。代码量大概3000左右。关键技术主要是各种配置文件的读取与解析,包括怪物类型文件,路线文件,炮塔位置文件,xml、json文件等。其次是整个游戏逻辑的理解。
    2023-02-25 18:20:03下载
    积分:1
  • 学习dos的好软件,希望有需要的朋友下来看看呀。很好的谢谢支持...
    学习dos的好软件,希望有需要的朋友下来看看呀。很好的谢谢支持-A good software to learn dos and hope there is a need of a friend down to see呀. Thank you very good support for
    2022-03-05 21:16:57下载
    积分:1
  • 一个VC++工业曲线控件PEGRP32C.DLL源码示例
    一个VC++工业曲线控件附源码示例,控件名称:PEGRP32C.DLL。测试时请把PEGRP32C.DLL放在Debug目录下,与exe同级目录。本控件用来显示柱状图、曲线图相当完美,而且界面制作漂亮,连窗体也经过了美化处理,具体效果请参见运行截图。
    2022-06-11 11:50:46下载
    积分:1
  • 二维射线追踪程序包,主要用于石油行业基于射线追踪的正演模拟计算...
    二维射线追踪程序包,主要用于石油行业基于射线追踪的正演模拟计算-2D Raytracing source packet, main use for oil exploration 2d raytracing modeling
    2022-04-25 08:10:58下载
    积分:1
  • A. Executive SPLIB B. Implementation SPDOS C. loading D. Pinyin module loading W...
    A.执行SPLIB B.执行SPDOS C.装载拼音模块D.装载五笔字型输入模块32.在汉字输入状态下, 按下Shift+A组合键后,输入了_______。 ... A.按原代码方式B.按指定字体C.按标准方式D. 按分栏方式41.FoxBASE启动后,在圆点"."提示符下,执行命令文件MAIN. -A. Executive SPLIB B. Implementation SPDOS C. loading D. Pinyin module loading WBZX module 32. The state of inputting Chinese characters, press Shift A key combinations, the importation of _______. The original code ... A. B. manner specified by standard fonts C. D. manner by way 41.FoxBASE columns after commencement, the dots "." Prompt implementation of an order document MAIN.
    2022-02-03 01:43:58下载
    积分:1
  • Java生成汉诺塔图表-河内塔的例子
    Java生成汉诺塔图表-又翻译为“河内塔”的例子,总之就是那一类图标吧,在Java数据统计中应用广泛,这个例子简单,就一个Java代码,易于理解学习汉诺塔的生成,最终生成的效果如演示截图所示。
    2022-03-18 22:00:58下载
    积分:1
  • For any software that handles client requests, at some point, there must be a pe...
    For any software that handles client requests, at some point, there must be a persistent point where all data related to the clients are stored. Those storages can be any thing (database, mainframes, files etc.). What if this software needs to access those storages with concurrent requests, knowing that opening a connection is memory and CPU consuming? A Connection Pool is a container of open and reusable connections. It will help you save both memory and CPU time. Also, it will help you in managing connections.
    2022-03-20 11:42:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载