Windows Develop Bookmark and Share   
 index > Windows Forms General > Layered windows corrupting OpenGl ones
 

Layered windows corrupting OpenGl ones

When I put an layered (for example transparent) window under my window which displays OpenGl and the layered window redraws itself it corrupts my content. This happens with all layered windows every time and it's very annoying especially because in my case windows have to be dragged underneath my window as a part of a normal usage scenario! The result of this is terrible flickering even when using and 300 fps redrawing rate. When using 1 fps, the "bad" image remains on my window until the next frame drawing.

It seems that when a layered window redraws it dumps some image onto the frontbuffer overwriting it's contents. The image is not of the window itself but an image that existed on that part of a screen some time before (as if the layered window reads the content of the frontbuffer at some point and every time it redraws it dumps that image onto the screen not bothering to check if the contents was changed).


This happens all the time with ALL layered windows on XP. Switching to or from double buffering, using aux buffers doesn't help at all, so I concluded that the corruption happens at the front buffer. Is there anything I can do, for example locking the frontbuffer or using some different kind of rendering?


Thanks,

Hrvoje
hdagelic  Wednesday, September 17, 2008 12:06 PM
I've seen this problem, running an NVidea technology demo. An obvious driver bug. Otherwise quite unrelated to the topic of this forum.
nobugz  Friday, September 19, 2008 12:12 AM
I've seen this problem, running an NVidea technology demo. An obvious driver bug. Otherwise quite unrelated to the topic of this forum.
nobugz  Friday, September 19, 2008 12:12 AM

You can use google to search for other answers

Custom Search

More Threads

• Access database report
• Tab Control & Colors
• CalendarEditingControl : DateTimePicker for DataGridView how to retain date previously in cell
• Show Paper Size in PageSetupDialog control?
• Scrolling in a UserControl
• Copy paste exactly as paint does.
• Multithreaded application in windows forms
• How do you catch the delete event on a datagrid?
• Scrollbar refresh problem
• Form Drawing