At 04:55 AM 4/14/2004, you wrote:
Hi group,

Is there any way to calculate the screen resolution: pixels per mm?
For WinCE I would do:
int res = GetDeviceCaps(hdcDisplay, VERTRES) / GetDeviceCaps(hdcDisplay,
VERTSIZE);

Please see http://www.mobilegeographics.com/dev/devices.php


Note: the pitch value that the page talks about isn't accurate. One of the reasons this page exists is to help the author collect this kind of information.

-- Ben Combee, senior DTS engineer, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to