Direct Draw and MFC

Started by
1 comment, last by Galileo430 22 years, 9 months ago
Does anyone know of any issues with Direct Draw and MFC?
------------------------------------------------------------I wrote the best video game ever, then I woke up...
Advertisement
Well, since MFC uses the GDI to draw everything, you''ll probably have a bunch of problems unless you make a lot of custom controls that implement their own ways of handling erase background, draw item, and paint messages.
There aren''t any problems with DDraw and MFC - theres even samples in the SDK demonstrating using the two together (DX8 its D3D which contains DDraw and in <=DX7 the samples show actual DDraw)

If you mean use MFC controls in a fullscreen exclusive environment, then forget it - as the poster above says they''re all GDI drawn.

If you mean the other way round where a DDraw surface is drawn onto an MFC control in a windowed mode app, thats not a problem. The control is still a window which you can draw on top of.

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

This topic is closed to new replies.

Advertisement