how did you set your map mode? i mean in what standards? what's easiest? or did you just leave yours in pixels?
Printable View
how did you set your map mode? i mean in what standards? what's easiest? or did you just leave yours in pixels?
There's a bunch of functions dealing with this. You can look on MSDN for a list but i'll list a few.
DPtoLP - Device coordinates to logical coordinates
LPtoDP - Guess ;)
GetGraphicsMode - Get current mode for dc
GetMapMode - Get current mapping mode
SetGraphicsMode - Guess
SetMapMode - Guess
There are tons more. Look up any of those functions on MSDN and you can easily get a link to the entire list.
i guess i asked my question wrong. i do know how to set the map modes, but i was just as to what you personally preferred to use. and by experience, what's the easiest and neatest to work with?
thanks and sorry for the confusion.
I personally just leave them in pixels.
yup. thats pretty much what i always did, but when i learned about these functions it seemed like it could make layout design a lot easier. guess not.
another thing...do you change your viewports?
SetViewportOrgEx()
SetViewportExtEx()
again, i know the functions and how to use them, i'm just asking what you personally do. do you change the view ports?
I never change the viewport. Again, I don't use GDI all that much. I am usually programming using DirectX API. I'm sure some for some things setting the viewport is ideal.
i'd like to get into dxapi sometime, but it looks really challenging (any harder than winapi?) and i'm really artistic kinda type of guy.