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/
  • Screen size Andy Bell
    • Re: Screen size Robert Moynihan

Reply via email to