使用gdi+画一条线,为什么显示不出来呢?
HDCh=::GetDC(m_hWnd);Gdiplus::Graphicsgraphics(h);graphics.SetSmoothingMode(Smoothing...
HDC h = ::GetDC(m_hWnd);
Gdiplus::Graphics graphics(h);
graphics.SetSmoothingMode(SmoothingModeHighQuality);
Gdiplus::Pen newPen(Color(0,0,0,255), 100);
graphics.DrawLine(&newPen, 5, 5, 100, 100); 展开
Gdiplus::Graphics graphics(h);
graphics.SetSmoothingMode(SmoothingModeHighQuality);
Gdiplus::Pen newPen(Color(0,0,0,255), 100);
graphics.DrawLine(&newPen, 5, 5, 100, 100); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询