how to system dpi in code
-
hi all i have got a problem like i want to get the dpi which is set in the XP inside the code like 96dpi or 120 dpi like that,but i am not finding any way. if any of u know about it please tell me . :) "Men never do evil so completely and cheerfully as when they do it from religious conviction" -Pascal
-
hi all i have got a problem like i want to get the dpi which is set in the XP inside the code like 96dpi or 120 dpi like that,but i am not finding any way. if any of u know about it please tell me . :) "Men never do evil so completely and cheerfully as when they do it from religious conviction" -Pascal
I think EnumDisplaySettings() can help you. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
hi all i have got a problem like i want to get the dpi which is set in the XP inside the code like 96dpi or 120 dpi like that,but i am not finding any way. if any of u know about it please tell me . :) "Men never do evil so completely and cheerfully as when they do it from religious conviction" -Pascal
Create a device context for the screen (
GetDC(NULL)
) and callGetDeviceCaps()
on it, specifying theLOGPIXELSX
orLOGPIXELSY
codes.Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"