Do the following code inside the OnPaint function:
CPaintDC d(this);
d.MoveTo(20,40);
d.LineTo(80,40);
d.Rectangle(10,20,200,10);
d.RoundRect(10,120,200,220,20,20);
d.Ellipse(10,240,200,340);
d.Pie(250,10,350,110,350,110,350,10);
POINT pt[5] = { 250,150,250,300,300,350,400,300,320,190};
d.Polygon(pt,5);