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?
Having problems with HWND
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.
The old ActiveX component "Picturebox" can do that. If a component has the "AutoRedraw" option, it might be able to show your graphics.
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/
but i implemented the following with opengl inside wpf, and it works pretty well.
http://www.gamedev.net/reference/programming/features/D3DCsharpWinform/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement