1.关于ALTERNATE与WINDING的源码QLottery源码解释
2.vcç»å¾å
关于ALTERNATE与WINDING的解释
void xxxView::OnDraw(CDC* pDC)
{
POINT points1[] =
{
{ , },
{ , },
{ , },
{ , },
{ , },
{ , },
{ , },
{ , }
};
POINT points2[] =
{
{ , },
{ , },
{ , },
{ , },
{ , },
{ , },
{ , },
{ , }
};
CPen bluePen(PS_SOLID, 1, RGB(0, 0, ));
CBrush yellowBrush(RGB(, , 0));
CBrush* pOldbrush = pDC->SelectObject(&yellowBrush);
CPen* pOldpen = pDC->SelectObject(&bluePen);
pDC->SetTextColor(RGB(, 0, 0));
pDC->SetBkMode(TRANSPARENT);
pDC->Polygon(points1, _countof(points1));
pDC->TextOut(, , _T("points1 polygon shape"));
for (int i = 0; i < _countof(points1); i++)
{
CString str;
str.Format(_T("%d"), i + 1);
pDC->TextOut(points1[i].x - 8, points1[i].y - 4, str);
}
pDC->SetViewportOrg(, 0);
pDC->TextOut(, , _T("points2 polygon shape"));
pDC->Polygon(points2, _countof(points2));
for (int i = 0; i < _countof(points2); i++)
{
CString str;
str.Format(_T("%d"), i + 1);
pDC->TextOut(points2[i].x - 8, points2[i].y - 4, str);
}
pDC->SelectObject(pOldbrush);
pDC->SelectObject(pOldpen);
}
vcç»å¾å
åªè½æä¾ä¸é¨å代ç ï¼é¦å ï¼å建ä¸ä¸ªMFCâåææ¡£âçé¢ãå ¶ä»è®¾ç½®é»è®¤å³å¯ãååå设æ¯MyDrawã
æ¾å°CMyDrawViewéé¢çOnDrawå½æ°ãå¦æåæ°pDC被注éæï¼åå»æ注éã
å½æ°åå为ï¼CMyDrawView::OnDraw( CDC * pDC )
å¨â// TODO: å¨æ¤å¤ä¸ºæ¬æºæ°æ®æ·»å ç»å¶ä»£ç âä¹åæ·»å ä¸å代ç
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
pDC->MoveTo( , );
pDC->LineTo( , );
pDC->LineTo( , );
ä¸è¿°ä»£ç å·²ç»å¨VSä¸éè¿ããç»çæ¯ä¸ä¸ªæ¡åã
2024-11-25 02:221187人浏览
2024-11-25 02:181941人浏览
2024-11-25 02:012595人浏览
2024-11-25 01:56597人浏览
2024-11-25 01:14322人浏览
2024-11-25 00:16168人浏览
1.纯CSS实现炫酷背景霓虹灯文字效果2.怎么自己来设计自己的首页风格那?也就是说我想自己DIY我的页面?3.怎样在F12下查看源码和调试网页CSS4.CSS 这样的代码怎么写纯CSS实现炫酷背景霓虹
1.Java源代码怎么打开?java文件怎么用Eclipse编译2.怎样导入Java源程序?3.网上拿到的java源代码怎么用?4.源代码怎么使用?5.如何正确使用源代码?6.如何使用软件源代码Jav
1.tomford香水怎么查真伪2.铂燕冻干燕窝还有营养吗?3.橄榄油的最佳食用方法?tomford香水怎么查真伪 首先tomford香水的真伪只够部分渠道购买的可以直接查询真伪,比如京东自营店买