标签:blog color 使用 2014 log ef as line file
CColorDialog dlg; dlg.DoModal(); COLORREF m_crCurColor; m_crCurColor = dlg.GetColor(); CPen m_pen(PS_SOLID,1,m_crCurColor); HDC hdc = ::GetDC(m_hWnd); SelectObject(hdc, m_pen); ::MoveToEx(hdc, 0, 0, NULL); ::LineTo(hdc, 100, 100); ::Ellipse(hdc,100,100,200,200); ::Rectangle(hdc,100,100,200,200); ::ReleaseDC(m_hWnd, hdc); DeleteObject(m_pen);
标签:blog color 使用 2014 log ef as line file
原文地址:http://blog.csdn.net/syytem004/article/details/41444125