Hi!
How can I include a window containing DirectX into a Win32 dialog box? That means the dialog box should include one area with a DirectX window among other common Windows controls.
Are there any tutorials/links showing how to do that or could you please give
me a quick example how this is done?
Thanx & greetings,
Nico.
DirectX in Win32 Control
Started by nico26, Sep 10 2005 12:17 PM
2 replies to this topic
#1
Posted 10 September 2005 - 12:17 PM
#2
Posted 10 September 2005 - 04:30 PM
Yes, there are the so called "custom controls" in Windows, which are actually very easy to use and are basically nothing more than simple windows (you can acquire window handle) located on another window, which is said to be the parent (in your case - the dialog). You can then get the window handle to the custom control as well as a device context handle and pass them to DirectX. And there you have it!
How do create a custom control? It's damn easy with MFC but you can also go with the Win32 API - ask google how:
custom controls
How do create a custom control? It's damn easy with MFC but you can also go with the Win32 API - ask google how:
custom controls
#3
Posted 11 September 2005 - 12:49 AM
nico26 said:
Hi!
How can I include a window containing DirectX into a Win32 dialog box? That means the dialog box should include one area with a DirectX window among other common Windows controls.
Are there any tutorials/links showing how to do that or could you please give
me a quick example how this is done?
Thanx & greetings,
Nico.
How can I include a window containing DirectX into a Win32 dialog box? That means the dialog box should include one area with a DirectX window among other common Windows controls.
Are there any tutorials/links showing how to do that or could you please give
me a quick example how this is done?
Thanx & greetings,
Nico.
I don't know about rendering to a dialog box..are you planning on calling the dialog box up for a different view or what? I know you can render to different windows with the same device using swap chains. What I did for my level editor is I created 4 different child windows and rendered to each one with different view matrices and I have the toolbar on the side and menu at the top...works for me. It's in Win32 also. If you're looking to do something like that look up swap chains via google.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












