WIN 画笔API使用
基本的创建画笔,
以桌面为DC
#include
intmain(void)
{HDChdc=GetWindowDC(GetDesktopWindow());
//创建红色1像素宽度的实线画笔
HPENhpen1=CreatePen(PS_SOLID,1,RGB(255,0,0));
HPENhpen_old=(HPEN)SelectObject(hdc,hpen1);
Ellipse(hdc,40,200,40+200,200+50);
SelectObject(hdc,
下载地址
用户评论