Sign in to follow this  

Having problems with HWND

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