G
Galaxia
Hi All,
To plot a circle with changeable radius by moving mouse operation, I always write "pDC->SetROP2(R2_NOTXORPEN)" in Visual C++. My question is how to realize it in .Net (I'm using VS 2003). The following is a section of plotting a circle.
void TCircleMaze:lotCircle(int m_CirNo,CDC * pDC)
{
CRect rect;
CPen * def_pen = pDC->SelectObject(&redPen);
int def_R2 = pDC->SetROP2(R2_NOTXORPEN);
rect = m_devCircle.GetRect();
pDC->Ellipse(&rect); // circle
// retrieve
pDC->SelectObject(def_pen);
pDC->SetROP2(def_R2);
return;
}
--
"Forward Galaxia"
To plot a circle with changeable radius by moving mouse operation, I always write "pDC->SetROP2(R2_NOTXORPEN)" in Visual C++. My question is how to realize it in .Net (I'm using VS 2003). The following is a section of plotting a circle.
void TCircleMaze:lotCircle(int m_CirNo,CDC * pDC)
{
CRect rect;
CPen * def_pen = pDC->SelectObject(&redPen);
int def_R2 = pDC->SetROP2(R2_NOTXORPEN);
rect = m_devCircle.GetRect();
pDC->Ellipse(&rect); // circle
// retrieve
pDC->SelectObject(def_pen);
pDC->SetROP2(def_R2);
return;
}
--
"Forward Galaxia"