问下我mfc 对话框画了一直线,怎么让它显示在控件上边, 红线显示出来 是个图像监控,放个静态的十字光标 5
CDC*pDC=GetDC();CPenpNewPen;pNewPen.CreatePen(PS_SOLID,2,RGB(255,0,0));;//设定颜色CPen*po...
CDC *pDC=GetDC();
CPen pNewPen;
pNewPen.CreatePen(PS_SOLID,2,RGB(255,0,0));; //设定颜色
CPen* poldPen=pDC->SelectObject(&pNewPen);
pDC->MoveTo(200,50);
pDC->LineTo(200,500);
pDC->SelectObject(poldPen); 展开
CPen pNewPen;
pNewPen.CreatePen(PS_SOLID,2,RGB(255,0,0));; //设定颜色
CPen* poldPen=pDC->SelectObject(&pNewPen);
pDC->MoveTo(200,50);
pDC->LineTo(200,500);
pDC->SelectObject(poldPen); 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询