Mega Search
23.2 Million


Sign Up

Make a donation  
EnumDisplaySettings for current settings  
News Group: borland.public.delphi.nativeapi.win32

Hi All,

I'm using

 EnumDisplaySettings(nil, ENUM_CURRENT_SETTINGS, FDMOrig); 

 to get the current screen settings where FDMOrig is of type TDevMode.
On my Windows XP development machine, it reports screen resolution
correctly.  However, on a Vista wide-screen laptop that I'm testing
on, the screen resolution is set to 1280 x 1024 but the
EnumDisplaySettings call reports it as 1280 x 1000. 

Any ideas why this would report 1000 instead of 1024 on Vista?  Is
there a new API function that works better for Vista or am I using the
API call incorrectly?

Thanks,
Steve

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 2-Jan-2008, at 10:59 AM EST
From: Steve
 
Re: EnumDisplaySettings for current settings  
News Group: borland.public.delphi.nativeapi.win32
Never mind guys.  I found my error.  I was having a brain bug.

Steve

On Wed, 02 Jan 2008 10:59:36 -0500, Steve 
wrote:

>Hi All,
>
>I'm using
>
> EnumDisplaySettings(nil, ENUM_CURRENT_SETTINGS, FDMOrig); 
>
> to get the current screen settings where FDMOrig is of type TDevMode.
>On my Windows XP development machine, it reports screen resolution
>correctly.  However, on a Vista wide-screen laptop that I'm testing
>on, the screen resolution is set to 1280 x 1024 but the
>EnumDisplaySettings call reports it as 1280 x 1000. 
>
>Any ideas why this would report 1000 instead of 1024 on Vista?  Is
>there a new API function that works better for Vista or am I using the
>API call incorrectly?
>
>Thanks,
>Steve

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 2-Jan-2008, at 4:56 PM EST
From: Steve