Drawing in a window
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
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.
I cover this in Chapter 4. 2D Applications in my book.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement