ABSTRACT

Now that you have seen a simple MFC application, I am going to discuss some common messages in Windows applications-including WM_PAINT, WM_CHAR, and the various mouse messages. You have already seen the WM_PAINT message in Chapter 5 and the OnPaint() message handler. This chapter discusses the details of painting in a window, including device contexts and mapping modes.