You need to understand the draw process: it is a function call in which all your stuff is drawn on a so called device context which you can imagine as piece of paper. It can be the screen or a printer.
For that there a lot of of
API-functions and objects in Windows and the MFC.
Here is a fine article which shows the basics of
GDI Drawing
.