Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rescaling a Picture from a C++ DLL

Status
Not open for further replies.

nhungr

Programmer
Jan 31, 2005
26
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top