I'm trying to figure out the easiest and best way to perform this task:

I have two PGM (portable gray map) images and i need to put one above the other in a MFC window. Then I need to link them with lines and draw some circles in them.

I thought of using a modal window and a picture box like a canvas (container). Then using DC (device context) to draw on it in the OnPaint event of the window. The PGM format has to be read, I think I cannot escape this manual duty..

All of this sound a bit complicated and (possibly) messy.

Someone has a better idea? I ask here before I start this job because I'm not an expert like most of you.