Using the resource editor to create a menu, and responding the the WM_COMMAND message
Scribble3.cpp - view
Scribble3.rc - view
resource.h - view
Scribble3.zip - download
We've shown how to use the functions LineTo and Rectangle to draw shapes on the client area. There's another function, Ellipse, that draws ellipses onto the client area. Take a look at it and try to extend Scribble's functionality to include ellipses as well as rectangles and lines.