case ID_BUTTONLINE:
ClientDC. SetROP2 (R2_NOT);
ClientDC. MoveTo (m_PointOrigin);
ClientDC. LineTo (m_PointOld);
ClientDC. MoveTo (m_PointOrigin);
ClientDC. LineTo (point);
break;
Draw a line in the mousemove function part is the above code, but there is one problem is that if you draw a straight line with a node, the node is white (due to the use of R2_NOT drawing mode), while it is possible when the mouse is raised up to black, but I see Windows's own draw two straight lines into the mouse is black, could you tell me how do I set the mapping mode to reach Windows's own drawing effect.
thank you
CodePudding user response:
R2_XORPEN?CodePudding user response:
R2_COPYPEN?CodePudding user response:
R2_NOTXORPENCodePudding user response:
Drawing software should not use the ROP operation, use SRCCOPY directly