Hello.
I have a Visual Basic 6 program that calls a C++ DLL that I am in the process of writing. The DLL does some calculations and should draw some points in a Picture form contained in the VB exe. How can I scale the Picture form to a custom scale from the C++ DLL, so that the points are drawn in the right place?
Note: I am currently passing the picture's hDC tag to the DLL, but I don't know what to do with it. Can I use some version of the SetWindowExt, SetViewportExt, and SetViewportOrg functions?
Any help would be much appreciated. Thanks.
Nikolai.
I have a Visual Basic 6 program that calls a C++ DLL that I am in the process of writing. The DLL does some calculations and should draw some points in a Picture form contained in the VB exe. How can I scale the Picture form to a custom scale from the C++ DLL, so that the points are drawn in the right place?
Note: I am currently passing the picture's hDC tag to the DLL, but I don't know what to do with it. Can I use some version of the SetWindowExt, SetViewportExt, and SetViewportOrg functions?
Any help would be much appreciated. Thanks.
Nikolai.