This topic is now archived and is closed to further replies.


Direct Draw and MFC

Recommended Posts

jaxson    127
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.

Share this post

Link to post
Share on other sites
S1CA    1418
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

Share this post

Link to post
Share on other sites