Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Jan : EnumDisplaySettings for current settings

www.cryer.info
Managed Newsgroup Archive

EnumDisplaySettings for current settings

Subject:EnumDisplaySettings for current settings
Posted by:"Steve" (kilr..@harpservices.com)
Date:Wed, 2 Jan 2008 10:59:36

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

Replies:

www.cryer.info
Managed Newsgroup Archive