Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Rendering 3D things into a dialog created by resedit

This topic is 457 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I render stuff into a dialog which is created by resedit previously?

I am using Visual C++ express 2010...

and DX9

resedit.thumb.jpg.0c9819ad5e50fa0764326d4d461297a7.jpg

Edited by lucky6969b

Share this post


Link to post
Share on other sites
Advertisement

Hi buddy,

I remember I created a formview or something before, but this time, resedit doesn't have a formview to create?

I meant I can create a square (looks like a formview thing) inside the dialog, cannot really remember exactly

Basically, no mfc's to use

Edited by lucky6969b

Share this post


Link to post
Share on other sites

DX9 attaches to an HWND during its setup. All of the controls in your window, as well as the window itself, will have an HWND. If you want to render into a square in that window then put some kind of control in the area where you want to draw and hand the HWND of that control to DX9.

Refer to D3DPRESENT_PARAMETERS and device creation.

Since you're using resedit you may need this:

https://cboard.cprogramming.com/windows-programming/102925-find-hwnd-certian-controls-window.html

Although, if memory serves, you can just set the ID of the target control manually in resedit and then just use GetDlgItem with that ID.

Edited by Khatharr

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!