I have an outer modal dialog class which uses an inner modeless child dialog.
The inner dialog display a 3D openGL model. These two dialog works perfectly.
I need to convert the outer diaog to a modeless dialog so that it can be displayed in a formview. i changed the outer dialog to have the 'child' style and embedded it in a third custom control Cwnd class.
This third Cwnd class will be embedded into the formview.
Every thing compiles and ran, hovever the original OpenGL inner dialog showed an error. It does no re-paint when the user click on a control and tellsit to re-paint, the outer dialog will re-paint but the inner dialog will not show up after this. Debuggiging shows that it's function was called.
If the outer dialog style is changed to "popup" , the thing will works again
I use Invalidate(false) inside the inner dialog so that it will re paint itself.