vc异或画矩形框并填充颜色 (下来时颜色有白道)下面是我的代码帮忙看下
COLORREF colBack;colBack = RGB(100,100,100);
CBrush brush(colBack);
CPen pen(PS_SOLID,0,colBack);
CPen* pPen = m_Pdc->SelectObject (&pen);
CBrush* pBrush = m_Pdc->SelectObject (&brush);
int nOldMode1;
nOldMode1 = m_Pdc->SetROP2(R2_NOTXORPEN);
// m_Pdc->Rectangle(1,m_First_Height,rect.Width()-2,m_Move_Height);
m_Pdc->RoundRect(1,m_First_Height,rect.Width()-2,m_Move_Height,0,0);
m_Move_Height=point.y;
// m_Pdc->Rectangle(1,m_First_Height,rect.Width()-2,m_Move_Height);
m_Pdc->RoundRect(1,m_First_Height,rect.Width()-2,m_Move_Height,0,0);
m_Pdc->SetROP2(nOldMode1);
m_Pdc->SelectObject (pen);
m_Pdc->SelectObject (pBrush);
来源: http://www.