Drawing in a window

Started by
0 comments, last by legalize 16 years, 6 months ago
Hiya, I'd like to be able to draw inside a control on a window using DirectX, but I can't find any information on how to do this. The reason is so my C++ game can be interfaced with a C# application - I'd like to drop, say, a picturebox on a form, and then pass a handle (via C++/CLR) to the game so the display is drawn inside it. Can anyone suggest anything, or direct me to some information? I'm thinking mainly of the C++ side here. Many thanks for any help [smile] James
Advertisement
You can pass a window handle to Present to have the results sent to that window instead of the default window associated with the device.

I cover this in Chapter 4. 2D Applications in my book.

My free book on Direct3D: "The Direct3D Graphics Pipeline"
My blog on programming, vintage computing, music, politics, etc.: Legalize Adulthood!

This topic is closed to new replies.

Advertisement