Home > Software engineering >  Reference line is added in MFC picturecontrol how, I do be control
Reference line is added in MFC picturecontrol how, I do be control

Time:12-22

The onpaint function to add the
CDialogEx: : OnPaint ();
CPaintDC dc (GetDlgItem (IDC_STATIC));//use this sentence, get the picture control DC, the image will be drawn on the controls

//brush - CPen
Draw a line//
//PS_SOLID: dotted line, only when the brush is 1 or more hours to effective
//10: line width
CPen pen (PS_SOLID, 5, RGB (255, 0, 0));
Dc. SelectObject (& amp; Pen);
Dc. MoveTo (0, a);
Dc. LineTo (200 a);

Set the two buttons to move the solid lines

Will also want to ask next solid line out, how to hide out of that part

CodePudding user response:

Do is camera collection and add reference line
  • Related