-
TheCprogrammingLanguage
By Brian W. Kernighan and Dennis M. Ritchieyһ
- 2008-11-21 13:28:39下载
- 积分:1
-
VC++ 三种方法创建不同类型的画刷
VC++ 三种方法创建不同类型的画刷,本源码实例 演示了VC++使用三种方法创建画笔,最核心的代码:
void CCreatePenView::OnDraw(CDC* pDC)
{
CCreatePenDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
// 第一种方法创建画笔
for (int i=0; i < 7; i++)
{
// 定义时调用构造函数
CPen myPen1(PS_SOLID + i,1,RGB(255,0,0));
CPen *pOldPen1 = pDC->SelectObject(&myPen1);
pDC->MoveTo(10,20*i+10);
pDC->LineTo(750,20*i+10);
// 恢复画笔对象
pDC->SelectObject(pOldPen1);
}
// 第二种方法创建画笔
for (int j = 0;j < 7; j++)
{
CPen myPen2; // 创建CPen类的一个对象myPen2
// 调用CreatePen()函数创建画笔
myPen2.CreatePen(PS_SOLID,j,RGB(0,255,255));
CPen *pOldPen2 = pDC->SelectObject(&myPen2);
pDC->MoveTo(10,180+20*j);
pDC->LineTo(750,180+j*20);
// 恢复画笔对象
pDC->SelectObject(pOldPen2);
}
// 第三种方法创建画笔
// 创建CPen类的一个对象myPen3
CPen myPen3;
// 设置LOGPEN结构;
LOGPEN lp ;
lp.lopnColor = RGB(255,0,255);
lp.lopnStyle = PS_SOLID ;
lp.lopnWidth.x = 8 ;
// 调用CreatePen
- 2023-04-20 18:00:04下载
- 积分:1
-
C语言培训资料
说明: C language programming(C language programming, very useful, very good)
- 2020-05-11 19:36:43下载
- 积分:1
-
Recursive-algorithm
利用VC6.0,采用递归算法,实现置换数组中所有的字母(Recursive algorithm using an array of all the letters replaced,using VC6.0)
- 2014-03-04 17:52:55下载
- 积分:1
-
c-program
简单c语言程序程序,用作自己的初步学习作用(simple c program)
- 2013-11-26 20:13:42下载
- 积分:1
-
2
说明: C和C++程序员面试宝典书籍,包含公司企业面试人员的常问问题以及解答的技巧。这是第二章的内容。(C and C++ programmers interview collection of books, frequently asked questions and answers included corporate staff interview skills. This is the content of the second chapter.)
- 2016-05-08 23:22:04下载
- 积分:1
-
VCMFC
丰富的MFC编程实例,迅速提高编程能力。(MFC-rich programming examples, programming ability to rapidly improve.)
- 2008-07-13 09:02:44下载
- 积分:1
-
CLI
c++/cli开发丛书,如何把原生代码和.NET库连接起来的技巧(c++/cli Development Series, how the native code and. NET library to link skills)
- 2009-04-25 18:04:02下载
- 积分:1
-
VC_Programming_classic_code_digital_certificate_cr
VC编程设计数字证书制作工具经典代码VC Programming classic code digital certificate creation tools(VC Programming classic code digital certificate creation tools)
- 2010-08-17 21:22:14下载
- 积分:1
-
Collections
it is about collection of MFC.I think it s helpful for research
- 2010-04-01 15:58:34下载
- 积分:1