Line Drawing
-
Hi I want to draw line on OnMouseMove function of a dialog class.I want to draw the line in one color(fixed color not inverse color ),but it is showing in different/inverse color. If I omit SetROP2 the line will get spread. <code> CDC* pDC = this->GetDC(); int nR2 = pDC->SetROP2( R2_NOTXORPEN ); pDC->MoveTo(m_StartPoint); pDC->LineTo(m_Previouspoint); m_Previouspoint = point; pDC->MoveTo(m_StartPoint); pDC->LineTo(point); </code> How to solve it? :^) thanks
-
Hi I want to draw line on OnMouseMove function of a dialog class.I want to draw the line in one color(fixed color not inverse color ),but it is showing in different/inverse color. If I omit SetROP2 the line will get spread. <code> CDC* pDC = this->GetDC(); int nR2 = pDC->SetROP2( R2_NOTXORPEN ); pDC->MoveTo(m_StartPoint); pDC->LineTo(m_Previouspoint); m_Previouspoint = point; pDC->MoveTo(m_StartPoint); pDC->LineTo(point); </code> How to solve it? :^) thanks
Please find previous thread. that will help you
-
Hi I want to draw line on OnMouseMove function of a dialog class.I want to draw the line in one color(fixed color not inverse color ),but it is showing in different/inverse color. If I omit SetROP2 the line will get spread. <code> CDC* pDC = this->GetDC(); int nR2 = pDC->SetROP2( R2_NOTXORPEN ); pDC->MoveTo(m_StartPoint); pDC->LineTo(m_Previouspoint); m_Previouspoint = point; pDC->MoveTo(m_StartPoint); pDC->LineTo(point); </code> How to solve it? :^) thanks
-
Please find previous thread. that will help you
Exactly how would finding a thread help in drawing a line? :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius