Scaling a Picture from a C++ DLL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
nah said:
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?

Graphics issues are the topic of the group

microsoft.public.win32.programmer.gdi

The group focuses on language issues.

Regards,
Will
 
Back
Top