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
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