MFC绘图学习笔记
来源:互联网 发布:美国劳工部 非农数据 编辑:程序博客网 时间:2024/06/06 10:41
封闭矩形:边界矩形:
边界矩形考虑了画笔的宽度,以避免图形绘制不完整
使用InflateRect(Width, Width)可以扩大矩形
InflateRect inflates CRect by moving its sides away from its center.
规范化的矩形:(左,上)(右,下)
左 <= 右 && 上<= 下
调用NormalizeRect()可以使矩形规范化
CDC类的一个成员函数 SetROP2() 非常适合橡皮筋操作
Raster OPeration To 光栅操作
SetCapture() 视图类继承的函数,
通过调用该函数,可以使视图类获取所有的鼠标消息,当然此时,别的应用程序无法获取鼠标消息
使用 ReleaseCapture() 可以释放强制捕获鼠标消息的命令
GetCapture()
原型:
static CWnd* PASCAL GetCapture( );
Return Value
Identifies the window that has the mouse capture. It is NULL if no window has the mouse capture.
The return value may be temporary and should not be stored for later use.
(msdn)
- MFC绘图学习笔记
- MFC学习笔记之简单绘图一
- MFC学习笔记之简单绘图二
- MFC学习笔记之绘图控制
- MFC学习笔记之简单绘图二
- MFC学习笔记之简单绘图一
- MFC学习笔记之一(绘图+控制)
- MFC学习笔记——GDI绘图
- MFC学习笔记(二)——简单绘图
- MFC学习笔记 简单绘图及相关函数
- 达内学习笔记——MFC绘图对象
- [mfc学习笔记一]以一个CGdiObject类的绘图例子来看一下绘图操作
- 孙鑫-MFC笔记三--绘图
- MFC笔记-----CDC 以及绘图
- OpenGL绘图学习笔记
- IOS绘图学习笔记
- 孙鑫VC++视频学习笔记之3: MFC消息映射机制和绘图DC
- MFC笔记 - GID绘图和CDC类
- 转载 mongodb常用命令
- C# MemoryStream和BinaryFormatter
- Utilu IE Collection
- warning: initialization from incompatible pointer type 分析
- Dual Core CPU POJ 3469(邻接表+GAP+CUR优化)
- MFC绘图学习笔记
- android多线程模型和service分析
- switch default
- 构建RTW下的嵌入式系统开发环境(转)
- 清楚重复行的2中方法(注意结果)
- Python 中的 集合类型 --- set
- nine
- Delphi WebService 的编写、调试、发布(IIS)、调用
- 文件操作练习2