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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Customizing screen coordinates

Status
Not open for further replies.

nhungr

Programmer
Jan 31, 2005
26
CA
I'm having problems visualizing in my mind the physical relationship between logical coordinates and device coordinates when using the mapping modes MM_ANISOTROPIC / MM_ISOTROPIC and the CDC:SetWindowExt() and SetViewportExt() member functions to customize screen coordinates.

I am trying to draw a graph on a window, with the origin in the bottom left of the window (instead of the upper left) and with the appropriate units to fit my entire graph (ie. so that no data gets drawn off screen). However, I absolutely can't figure out the purpose of the CDC:SetWindowExt() and SetViewportExt() functions and how their arguments affect the coordinates on the screen.

The more books I read about it, the more confused I get. Any help would be very much appreciated. Thanks,

Nikolai.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top