المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Gettextextent and Screen resolution



C++ Programming
10-16-2009, 12:30 PM
Hi,

I had some code that I was using on a machine with a Low resolution I populated some data in a Rich Edit control

and aligned up things with GetTextExtent

Now when I ported the code to a machine with a higher resolution the text doesn't align properly

Thought GetTextExtent takes things like that into consideration

The one other difference is that the higher resolution machine runs Vista


Do I have to use GetDeviceCaps ???


thankx