Archived

This topic is now archived and is closed to further replies.

Brubaker

Windows GDI Mapping Mode

Recommended Posts

Brubaker    122
I am pretty new to windows programming. I am using MFC. I am trying to create a graphing program. There is only one problem. I need coordinate (0, 0) to be in the center of the screen, instead of the top left hand corner. Is there a mapping mode for this? If you know, please give me the code to do this. Thanks David

Share this post


Link to post
Share on other sites
TangentZ    450

The "mapping mode" actually has something to do with how the
coordinates are specified within the window.

Example: MM_TEXT, MM_LOENGLISH..etc

If you want (0,0) to be at the center of the window, why
don''t you find out the size of the window and just translate
everything accordingly? Probably easier.


Premature optimizations can only slow down your project even more.

Share this post


Link to post
Share on other sites