?
Solved

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

Posted on 2007-04-10
2
Medium Priority
?
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
alexcohn earned 1500 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

800 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