Scaling a Picture from a C++ DLL

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.
 
W

William DePalo [MVP VC++]

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
 

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