Jump to content
  • Advertisement
Sign in to follow this  
nlraley

Having problems with HWND

This topic is 2830 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

I am having a few problems with HWND. I am trying to use the HWND of an Panel or Scrollbox, I've even tried Application and MainForm's HWND; however, every time I try to use any of these HWNDs, nothing is being displayed.

However, if I create a new window with CreateWindow and use that as my HWND, everything shows up fine. So what do you have to do to get the direct3d to draw inside a control on a form?

Share this post


Link to post
Share on other sites
Advertisement
The controll must have a property saying that you can draw to them.
The old ActiveX component "Picturebox" can do that. If a component has the "AutoRedraw" option, it might be able to show your graphics.

Share this post


Link to post
Share on other sites
im not sure what makes an hwnd for a control different than a main window,

but i implemented the following with opengl inside wpf, and it works pretty well.

http://www.gamedev.net/reference/programming/features/D3DCsharpWinform/

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!