What GUI toolset are you using?
Most GUI toolset will have a kind of "Canvas" widget which usually has functions for adding shapes like circles, rectangles, lines, text, etc... more or less everything you need to create a simple "Paint" application.
For example, using Qt, there is a framework of classes grouped under Graphics View Framework that will provide all the functionality that you need. They have examples and tutorials available.
As for other toolsets (WinForms, MFC, WxWidget, GTK+, VCL, etc.), I'm less familiar with them, but I'm sure they have similar functionality, often under a name like "GraphicsView" or "Canvas".