Solved

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

Posted on 2007-04-10
2
219 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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

772 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

12 Experts available now in Live!

Get 1:1 Help Now