-
VC++透明窗口效果的电子标尺源代码
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;是否是已点击一次
- 2022-03-01 01:45:04下载
- 积分:1
-
once-converted-to-the-sub-system
射频到中频的变频器,包括接收机中的低噪声放大器和射频到中频的变频器(RF to IF frequency converter, including low noise amplifier in the receiver and RF to IF frequency converter)
- 2017-04-12 21:41:09下载
- 积分:1
-
程序
通过按钮控制灯,能开关,能停止,能接继电器(Control the light through a button)
- 2018-03-19 13:30:11下载
- 积分:1
-
PHD
这个代码是纯方位目标跟踪,多目标多传感器(THE code is bearing target tracking, multi-objective multi-sensor)
- 2021-01-22 22:28:45下载
- 积分:1
-
簡易BMI轉換日記
简易BMI转换日记纪录,可储存日记心得
纪录每日体重是减肥基础,帮助您快速纪录BMI之余
也能记录每日心得
- 2022-04-25 07:59:01下载
- 积分:1
-
按五次Shift键,就会出现一个功能界面通过它你可以调用网页
按五次Shift键,就会出现一个功能界面通过它你可以调用网页-Press Shift key five times, there will be a functional interface through which you can call the page
- 2023-04-19 17:00:03下载
- 积分:1
-
8、代理模型
利用代理模型进行优化的资料,包括最前沿的金耀初等(surragate optimization)
- 2020-06-16 05:00:01下载
- 积分:1
-
DNN-master
说明: 神经网络控制器NARXnet,动态神经网络使用源码(Neural network controller NARXnet, dynamic neural network source code)
- 2020-06-23 10:40:01下载
- 积分:1
-
库存销售系统
inventory sales system
- 2022-02-05 17:18:19下载
- 积分:1
-
IPOSIM7-5d
IGBT 损耗计算工具,IGBT损耗计算采用了塞米控手册建议的复杂模型。(Use excel to do IGBT loss calculation tools, IGBT loss calculation Sammy control manual recommends using a complex model.)
- 2013-11-01 15:11:51下载
- 积分:1