Pass C# window to unmanaged C++

A

Achim Domma

Hi,

I'm developing a GUI in C# and want to let some unmanaged C++ code draw in
my window. How can I pass a C# window to unmanaged C++. The C++ code needs
the window handle to use 'old' Win32 GDI functions to draw into the window.

regards,
Achim
 
M

Mattias Sjögren

The C++ code needs the window handle to use 'old' Win32 GDI functions to draw into the window.

Windows Forms controls have a Handle property that provides that.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top