Solved

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

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

730 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