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