Windows forms and mixiing unmanaged C with managed C++ and windows handles

  • Thread starter Thread starter Steve Marsden
  • Start date Start date
S

Steve Marsden

Hi

I want to specify the parent of a windows form to be a window handle I have
elsewhere in my project which is an unmanaged WIN32 handle. How can I do
this?

If I simple say myform->Parent=mainwnd (where mainwnd is a WIN32 handle) I
obviously get the error Cannort convert from HWND to
System::Windows::Forms::Control

Thanks
 
Back
Top