Article View: borland.public.cppbuilder.nativeapi
Article #7928Re: ChangeDisplaySettingsEx driving me nuts...
From: Graham Thompson
Date: Thu, 16 Dec 2004 08:14
Date: Thu, 16 Dec 2004 08:14
15 lines
1482 bytes
1482 bytes
"Graham Thompson" <gct@faGUESS-WHAT-TO-DO-WITH-THISsl.co.uk> wrote in
message >
> if (0 != EnumDisplaySettings(FMonitorInfo.DeviceName,
correction:
if (0 != EnumDisplaySettings(FMonitorInfo.szDevice,
and FMonitorInfo is MONITORINFOEX, not DISPLAY_DEVICE. If I use
DISPLAY_DEVICE.DeviceName from the EnumDisplayDevices call for the monitor,
EnumDisplaySettings fails.
I think I'm doing something fundamentally wrong here,
GT.
Technical Details
Message-ID:
<41c143da$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41c00d82@newsgroups.borland.com> <41c07e5c$1@newsgroups.borland.com> <41c13f6a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4bfd89b1b8a413a2 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Graham Thompson" <gct@faGUESS-WHAT-TO-DO-WITH-THISsl.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi References: <41c00d82@newsgroups.borland.com> <41c07e5c$1@newsgroups.borland.com> <41c13f6a@newsgroups.borland.com> Subject: Re: ChangeDisplaySettingsEx driving me nuts... Date: Thu, 16 Dec 2004 08:14:21 -0000 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 62.173.124.106 Message-ID: <41c143da$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103184858 62.173.124.106 (16 Dec 2004 00:14:18 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail