-
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
-
街霸游戏,游戏很逼真,是一款可玩性非常强的手机游戏
街霸游戏,游戏很逼真,是一款可玩性非常强的手机游戏-neighborhood games, the game is very realistic, the creator of one of the very strong mobile phone games
- 2022-04-20 13:21:00下载
- 积分:1
-
BFSK.在MALAb环境下编的。短小精干,很适合在程序中作为一个fuction来用。...
BFSK.在MALAb环境下编的。短小精干,很适合在程序中作为一个fuction来用。-BFSK. MALAb environment in the series. Short crack, and is very suitable for the process as a fuction use.
- 2022-03-28 20:14:11下载
- 积分:1
-
利用传统的波束形成方法和music算法对宽带信号的DOA进行估计的仿真程序。...
利用传统的波束形成方法和music算法对宽带信号的DOA进行估计的仿真程序。-Using traditional methods and music beamforming algorithm to wideband signal DOA estimation of the simulation program.
- 2022-04-06 14:51:12下载
- 积分:1
-
异步电动机调压调频正弦波直流脉宽调速系统(SPWM)的仿真模型...
异步电动机调压调频正弦波直流脉宽调速系统(SPWM)的仿真模型-Induction Motor VVVF DC sinusoidal PWM system (SPWM) simulation model
- 2023-08-20 17:50:03下载
- 积分:1
-
关于卡尔曼滤波的matlab工具箱,里面有好几个,大家可以参考...
关于卡尔曼滤波的matlab工具箱,里面有好几个,大家可以参考-Kalman filter on matlab toolbox, which has quite a few, everyone can refer to
- 2022-07-21 16:36:43下载
- 积分:1
-
VB使用smtp.dll发送Email程序演示
VB使用smtp.dll发送Email程序演示,简邮邮件发送组件,mtp.dll通过smtp协议发送邮件,为标准windows dll 支持VB VC等主流编程工具调用,调用方式跟调用windows api完全相同。 使用或者发布后无需注册控件 无需做成安装包 发布时只需将本dll放到exe同目录下即可。
本dll仅有两个导出函数
1.SendMail函数:发送邮件主函数
2.GetSmtpError函数:当发送失败时使用该函数取得失败的原因 (比如用户名密码错误)
具体用法及各个参数说明见各个程序示例代码。
- 2022-02-13 00:21:07下载
- 积分:1
-
DS1302资料,实时时钟控制芯片.可自行记时,自动进行月份,年等调整,包括闰年和闰月...
DS1302资料,实时时钟控制芯片.可自行记时,自动进行月份,年等调整,包括闰年和闰月-DS1302 data, real-time clock control chip. Can remember, the automatically month, year and other adjustments, including a leap year and the Leap
- 2022-02-16 09:57:45下载
- 积分:1
-
arcgis geodatabase Access 数据库创建
arcgis geodatabase Access 数据库创建
- 2022-04-12 05:52:08下载
- 积分:1
-
Nankai 100 that the source code for a total of 30, have passed the test, we want...
南开百题的源码,共30道,都已经通过测试,希望对大家有所帮助.-Nankai 100 that the source code for a total of 30, have passed the test, we want to help.
- 2022-04-29 07:52:11下载
- 积分:1