I'm writing an .NET DLL for a Clarion (Clarion is a C++ type language) program. The Clarion program calls a .NET DLL method passing to it the HWND of a Clarion image control. In the .NET DLL I can get the correct RECT (Top, Right, Bottom, Left) from the passed in HWND so I know I have the correct HWND.
What I cannot seem to find out is in the .NET DLL write a bitmap to the HWND. On the Clarion side, I would simply do this:
?myImageControl{PROP:ImageBits} = ImageBytes
where ImageBytes is an array of bytes, such as a file or a Clarion STRING (fixed length, not zero terminated).
Thanks in advance.