VC++ 6.0
方法1:
CPen Pen( PS_SOLID, 1, RGB( 255, 0, 0 ) );
CPen* pOldPen;
pOldPen = pDC->SelectObject( &Pen );
方法2:
CPen Pen( PS_SOLID, 1, RGB( 255, 0, 255 ) );
CPen* pOldPen;
pOldPen = (CPen*)SelectObject( hDC, Pen.GetSafeHandle() );
posted on 2007-09-17 09:48
石正 阅读(3781)
评论(2) 编辑 收藏