Introduction - If you have any usage issues, please Google them yourself
Small experiment in the view class ondraw function add the code, the program runs, the class object with CClientDC dc art graphics and paintings with the CDC object pointer graphic can be displayed in the client area, but the print preview only shows CDC object pointer to draw the graphics, because the print preview, use the CDC class device context object, and view it as an argument to the function class ondraw