Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with the repaint of a child window client area

Status
Not open for further replies.

gjcsot

Programmer
Oct 16, 2002
9
GB
I've create a dialog window which is member of the CView class, I have then
Created a second dialog window which is a Child of the first dialog. On the
OnDraw method of the CView class I position the first Dialog relative to the
main window using MoveWindow and position the second dialog to somewhere on
the first dialog (I have also tried SetWindowPos). I then draw something
onto the second dialog.

What happens is the dialog box appears but the drawing does not, it only
appears if you drag something across it or move it off the screen and back
again. When you re-size the window the draw item disappears again.

The WM_PAINT message is created for all the above case i.e. the OnDraw
method is always called but Obviously something different is happening for
the different cases.

Help in furthing my understanding would be most appreciated

Grant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top