Andy Bell wrote:
Hi All,
How do I get the screen size of the device?
Thanks in advance
Andy
I do this (feed it TRUE for width, FALSE for height):
UInt8 ScreenSize(Boolean width){
Coord drawAreaHeightCoords, drawAreaWidthCoords;
WinGetDisplayExtent( &drawAreaWidthCoords, &drawAreaHeightCoords );
if (width)
return drawAreaWidthCoords;
return drawAreaHeightCoords;
}
Bob.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/