Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm a newer on MFC . Last month, I wrote a program using MFC and Vega Primer.Vega is a real-time 3D simulation development software kit.It provides many library. In my program,I create a window using Vega. I paste this window to the MainFrm.Then I create a transparent dialog on the top.when I am running my program on the Vista and Win7,it run well.But when this program runs on the Win XP ,the transparent Dialog will twinkle .
Hope you understand my issue.Thanks for all replies!
regards!
winshing
Posted
Comments
mbue 25-Sep-11 11:35am    
Thats because vista and w7 gdi functions dont draw directly to the primary display surface. On xp the window content beneath you transparent dialog is painted first and the dialog is rendered with transparency over the background.
Regards.
Albert Holguin 25-Sep-11 16:37pm    
Post as solution? ...although you're not exactly giving him a solution but you are telling him why its occurring.
mbue 25-Sep-11 16:42pm    
I think the op wants an explanation. There is no solution by mine.
Regards.

1 solution

If the problem is as mbue suggests, you can probably overcome the problem by detecting the OS at run-time, for XP and older, draw off screen then use bitblt to create smoother graphics. This method should also work for Vista and Win7 though, so maybe you can just use this technique all the time.
 
Share this answer
 
Comments
winshing 26-Sep-11 8:39am    
Thanks,I will try it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900