Update Child's Window View
Posted on 2002-07-08
I created a form view using MFC. There's a window (child window) in the form view. The child window is used to display a jpeg image. I managed to display the image in the child window. My problem is when I minimize the window and then maximize it again, the image in the sub window disappear. I put some code in the CView::OnDraw function but it doesn't work :
void CTestImgView::OnDraw(CDC* pDC)
CDC* pCamDC = m_cCam1.GetDC();
graphics.DrawImage(&cImage, 10, 10);
m_cCam1 is the subwindow.
Can sombody help ?