I am developing a DirectDraw application, and want to place ex a CEdit on top of my 2D screen. I have managed to get it to work, but no surprise, it flickers badly.
I guess I have to tell MFC to draw to my back buffer, but how do I do that
When you create your device you should make sure it is set up to be double buffered. If so, when you draw you should always be drawing to the back buffer and when you show, you should just be "flipping" the buffer. If you're using DirectDraw (and not DirectX Graphics) you're probably using an old version of DirectX, so it's hard to tell you the exact methods and devices to be doing this with.
You might also check on the direct x forum where people will be more familiar with the subject of your question which is re DirectX, not the C++ language.
DirectDraw flickering
Johan Nordin
Is that still an issue
Thanks, Ayman Shoukry VC++ Teamrutu
When you create your device you should make sure it is set up to be double buffered. If so, when you draw you should always be drawing to the back buffer and when you show, you should just be "flipping" the buffer. If you're using DirectDraw (and not DirectX Graphics) you're probably using an old version of DirectX, so it's hard to tell you the exact methods and devices to be doing this with.
You might also check on the direct x forum where people will be more familiar with the subject of your question which is re DirectX, not the C++ language.
http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=106&SiteID=1
Thanks,
Ben