-
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
-
hurst_exponent
一个简单的计算hurst指数的matlab程序(A simple calculation of Hurst index of matlab program)
- 2008-05-09 10:12:57下载
- 积分:1
-
语文题自动考试系统,课程设计或…
c语言自动出题与考试系统,可做为课程设计或毕业设计用!-c language questions automatically and examination system, curriculum design or can be used as a graduation project by!
- 2022-02-05 19:40:46下载
- 积分:1
-
转换汉字到16进制编码和10进制编码的小工具,
java编写,源程序不小心删除了,请反编译即可得到。...
转换汉字到16进制编码和10进制编码的小工具,
java编写,源程序不小心删除了,请反编译即可得到。-Convert Chinese characters to 16 hexadecimal encoding and 10-band encoding gadget, java prepared source accidentally deleted, please decompile can be obtained.
- 2022-07-22 03:16:07下载
- 积分:1
-
分频器,用于时钟信号的分频及倍频,供专业人事学习研究使用...
分频器,用于时钟信号的分频及倍频,供专业人事学习研究使用-Prescaler for the clock signal frequency and octave, for study and research the use of professional personnel
- 2022-03-31 08:34:19下载
- 积分:1
-
配电网粒子群算法
基于粒子群算法,直流潮流计算实现配电网网架结构重构(Reconfiguration of distribution network structure)
- 2018-08-25 11:04:03下载
- 积分:1
-
无刷直流电动机需要多种电压电平来控制转速:0V 使电动机停转,5V 使电动机以最大转速运转,而在0V和5V之间的电压则使电动机以较低的转速运转...
无刷直流电动机需要多种电压电平来控制转速:0V 使电动机停转,5V 使电动机以最大转速运转,而在0V和5V之间的电压则使电动机以较低的转速运转-The needs of a wide range of brushless DC motor voltage level to control the rotational speed: 0V stop the motor switch, 5V maximum speed of the motor running, and in between 0V and 5V voltage while the motor running at low speed
- 2022-07-14 10:04:40下载
- 积分:1
-
VehicleGame
vhicle games expt notnot
- 2017-09-11 16:16:29下载
- 积分:1
-
功能齐全的产品展示系统ASP源码
功能齐全的产品展示系统asp源码-fully functional product display system asp FOSS
- 2022-09-14 23:20:03下载
- 积分:1
-
FDTD原理及例子
说明: FDTD的原理及例子,内容很详细,例子多。(Principles and examples of FDTD)
- 2020-11-25 10:24:40下载
- 积分:1