Article View: borland.public.cppbuilder.nativeapi
Article #1890Re: Detect Screen DPI Change
From: Mike Collins
Date: Wed, 30 May 2007 11:42
Date: Wed, 30 May 2007 11:42
24 lines
1474 bytes
1474 bytes
System sends a WM_DISPLAYCHANGE message to all windows when the display changes. see: http://msdn2.microsoft.com/en-us/library/ms534847.aspx Just intercept this message by defining your own wndproc for the main form and looking for this message. Then you should be able to be informed when the screen settings change HTH Mike "JD" <nospam@nospam.com> wrote in message news:465d5082$1@newsgroups.borland.com... > > Is there some way that I can detect a change in the screens > density of pixels per inch (like when the user changes the > resolution using the ControlPanel)? > > ~ JD >
Technical Details
Message-ID:
<465d52ea$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<465d5082$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c36b0af35aa9bbb7 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi References: <465d5082$1@newsgroups.borland.com> Subject: Re: Detect Screen DPI Change Date: Wed, 30 May 2007 11:42:33 -0000 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.3959 NNTP-Posting-Host: 89.242.135.15 Message-ID: <465d52ea$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1180521194 89.242.135.15 (30 May 2007 03:33:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail