It's quite easy. I suggest you do the following:
1) Use a static frame for the picture
2) Derive a child class thusly:
Code:
class CImageWnd : public CStatic{
public:
// Constructors, destructor, copy constructor and assignment op
// Remember, your assignment op should call the base version.
// If you don't want copy or assignment, make them protected
OnPaint();
// OnPaint() is where you do the magic
private:
// Data members.
};
3) Create a member of the child class, and do this in the dialog's DoDataExchange:
DDX_Control(pDX, IDC_NAME, m_name);
4) Implement the child class' OnPaint. I usually start off with something that just fills the paint area blue. You can do what you like.
5) I recommend using either MFC's CImage, or a good third party graphics library like http://www.paintlib.de/paintlib/ . Paintlib has more power, and it's got a pretty decent interface.