Solved

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

Posted on 2007-04-10
2
221 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

809 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