GDI绘制填充

只记录一段流程代码:

	int oldMode = ::SetROP2( (HDC)m_hDC, m_drawMode ) ;
	m_oldBrush = (HBRUSH)::SelectObject( (HDC)m_hDC, m_hBrush );
	
	//绘制填充面
	::BeginPath(hdc);
	::CloseFigure((HDC)hdc);	
	::EndPath((HDC)hdc);
	
	//绘制边线
 	(HPEN)SelectObject( (HDC)m_hDC,m_hPen );
	::Polyline (dc,ScreenPointPtr(),ScreenPointSize());

	::SelectObject( (HDC)m_hDC, m_oldBrush );
	::SetROP2( (HDC)m_hDC, oldMode ) ;

你可能感兴趣的:(C++札记)