Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - In VC6.0, MFC, dialog box, I want to draw a coordinate axis in a certain area of the dialog box and mark it with scale. How can I finish it?
In VC6.0, MFC, dialog box, I want to draw a coordinate axis in a certain area of the dialog box and mark it with scale. How can I finish it?
If it is simple, you can use PDC-->LineTo () directly in the OnPaint () function of the dialog box. If you want to adjust the position of the coordinate axis in the dialog box, you can create a derivative window of CWnd, draw it in the OnPaint () of the child window, and then create a child window to display the coordinate axis in the dialog box.