title: Examples on using a HWND from C# UserControl in via DirectShow in C++
body: <p>Does anybody have any simple examples on how to provide C++ code a window that can be used for DirectShow rendering from a C# UserControl?</p>
  
  <p>I am currently able to create a separate and render to a window via a WS_POPUP window and match its size/position to the existing control window I have reserved for the video pane on the WPF control.  </p>
  
  <p>As soon as I try to make the window a child of the WPF control or set WS_CHILD on a new or existing window everything stops rendering and I receive no error explaining what is going on.</p>
  
  <p>Ideally I would be able to pass existing HWND from C# through to the C++/DirectShow class and use it there as-is.</p>
  
  <p>P.S.</p>
  
  <p>Before you ask "Why don't you just... do something different", I need to control DirectShow from C++ and have to display the results via a C# (WPF) control.  I have no control over these conditions.</p>
  
  <p>C#/WPF (control reserved)  &lt;--->  C++/CLI  &lt;--->  C++/HWND/DirectShow</p>