Solved

child Dialog inside dialog repaint problem, 500 points?????

Posted on 2007-04-10
2
220 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:tussfw
2 Comments
 
LVL 11

Accepted Solution

by:
alexcohn earned 500 total points
ID: 18890279
See http://support.microsoft.com/kb/q272222/ - it's an old well-known Microsoft bug with child window clipping. Some people claim that setting the window style to Style |= (WS__CLIPCHILDREN | WS_CLIPSIBLINGS | CS_OWNDC) may help.
0
 

Author Comment

by:tussfw
ID: 18986832
It may be that the answer is correct, setting these styles does not help though.

I had re-done the dialog in a different way to solve it.
0

Featured Post

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now