//创建实心画笔,粗度为1,颜色为绿色 newPen.CreatePen(PS_SOLID, 1, RGB(0, 255, 0)); //选择新画笔,并将旧画笔的指针保存到pOldPen pOldPen = pDC->SelectObject(&newPen); //画直角坐标 pDC->MoveTo(rectPicture.left, rectPicture.top + (rectPicture.Height() / 2)); pDC->LineTo(rectPicture.right, rectPicture.top + (rectPicture.Height() / 2)); pDC->MoveTo(rectPicture.left + (rectPicture.Width() / 2), rectPicture.top); pDC->LineTo(rectPicture.left + (rectPicture.Width() / 2), rectPicture.bottom); // 恢复旧画笔 pDC->SelectObject(pOldPen); // 删除坐标画笔 newPen.DeleteObject();
//创建实心画笔,粗度为1,颜色为绿色
newPen.CreatePen(PS_SOLID, 1, RGB(0, 255, 0)); //选择新画笔,并将旧画笔的指针保存到pOldPen
pOldPen = pDC->SelectObject(&newPen); //画直角坐标
pDC->MoveTo(rectPicture.left, rectPicture.top + (rectPicture.Height() / 2));
pDC->LineTo(rectPicture.right, rectPicture.top + (rectPicture.Height() / 2));
pDC->MoveTo(rectPicture.left + (rectPicture.Width() / 2), rectPicture.top);
pDC->LineTo(rectPicture.left + (rectPicture.Width() / 2), rectPicture.bottom); // 恢复旧画笔
pDC->SelectObject(pOldPen); // 删除坐标画笔
newPen.DeleteObject();
---------------------
原文:https://blog.csdn.net/lijiayu2015/article/details/52885475
- 啥叫DynamicalBilliards动态粒子(动力台球)
- 五大系统-为啥搞那么复杂?
- 内存数据库triangleBilliard19Redis参数190101
- HiRedis在C++Windows下配置编译使用190101
- 三大视图:inputOrigin_计算系统(无理数非视图)_3输出视图190110
- MGDs-Mp系统:数学生成数据(或数据生成)系统-参数修改模块190102
- MGDs的安装攻略190110
- redis+MGDs-Mp系统完整代码之-代码块1-测试Redis连接190110
- c++中longdouble_longlong等能计算的最大、最小值190101
- 充分解耦的MGDs-充分松耦合的数学生成数据系统190111
- MGDs-数据生成系统的(部分)核心代码190114
- mfc190115