首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > VC++透明窗口效果的电子标尺源代码

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

  • 资源大小:48.14 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分: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;是否是已点击一次

文 件 列 表

codesc.net
Ruler
DATA.MDB
Ruler
Ruler
COMMENT.TXT
codesc.net
VIP VIP
0.180388s