Article View: borland.public.cppbuilder.nativeapi
Article #12823Change Resolution
From: George
Date: Fri, 14 Nov 2003 09:53
Date: Fri, 14 Nov 2003 09:53
26 lines
1535 bytes
1535 bytes
Hi, I'm using that code: DEVMODE devicemode; memset(&devicemode,0,sizeof(devicemode)); devicemode.dmBitsPerPel = 16; devicemode.dmPelsWidth = 1280; devicemode.dmPelsHeight = 1024; devicemode.dmDisplayFrequency=75; devicemode.dmSize = sizeof(devicemode); devicemode.dmFields = DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT; devicemode.dmDisplayFlags= NULL; ChangeDisplaySettings(&devicemode,CDS_UPDATEREGISTRY); that must change the resolution to 1280x1024 16bits in 75Hz. It goes to 1280x1024 but it goes to 60 not to 70Hz ! If I go manually to the Display Properties, I can switch to 70Hz without problems (or restart). I'm running Windows XP Pro. Thank you!
Technical Details
Message-ID:
<3fb4979d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b7d6840aa53a7834,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-14 01:09:30 PST From: "George" <george@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Change Resolution Date: Fri, 14 Nov 2003 11:53:26 +0200 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.16.182.131 Message-ID: <3fb4979d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1068799901 213.16.182.131 (14 Nov 2003 00:51:41 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail