<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Add support for &quot;system enhanced scaling&quot;</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Add support for &quot;system enhanced scaling&quot;]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:18:17 +0000</pubDate>
  <lastBuildDate>Fri, 23 Sep 2022 11:53:59 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=24320</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Add support for &quot;system enhanced scaling&quot; : Passing it on makes perfect sense...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78535&amp;title=add-support-for-system-enhanced-scaling#78535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 24320<br /><strong>Posted:</strong> 23 September 2022 at 11:53am<br /><br /><div>Passing it on makes perfect sense to me as I don't care about GDI scaling as we simply don't use it. We use either per monitor aware or system aware. I have that code for debugging purposes only so I can track which of the two scaling modes I have enabled programmatically. And, whether a user has overridden that&nbsp; mode via the advanced properties UI the OS provides for an executable.</div><div><br></div><div>When an issue does arise, I just fix them and post here on the forums regarding the same. So far, I have been able to do so without modifying CJ code directly when it comes to DPI scaling issues except in one case that I know of which was due to a 19.3 change related to CJ's use of their auto-scaling mode, which we don't use.</div><div><br></div><div>If you want a CJ fix, open a support case.<br></div>]]>
   </description>
   <pubDate>Fri, 23 Sep 2022 11:53:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78535&amp;title=add-support-for-system-enhanced-scaling#78535</guid>
  </item> 
  <item>
   <title><![CDATA[Add support for &quot;system enhanced scaling&quot; :   rdhd wrote:I see that value...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78532&amp;title=add-support-for-system-enhanced-scaling#78532</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9275">mnissl</a><br /><strong>Subject:</strong> 24320<br /><strong>Posted:</strong> 20 September 2022 at 10:23am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by rdhd" alt="Originally posted by rdhd" style="vertical-align: text-bottom;" /> <strong>rdhd wrote:</strong><br /><br /><div>I see that value and as I noted, I just pass it on to the other API.</div><div></td></tr></table></div><div><br></div><div>There is no sense in passing it to the other API if you want to find out whether the application is GDI scaled.<br></div><div><br></div><div><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by rdhd" alt="Originally posted by rdhd" style="vertical-align: text-bottom;" /> <strong>rdhd wrote:</strong><br /><br /></div><div>Again, what are you seeing you think needs to be improved by CJ?</div><div></td></tr></table></div><div><br></div><div>The upper half of the screenshot in my original post represents the ribbon that is drawn by CodeJock, not Microsoft. And it shows several glitches:</div><div><br></div><div><ul><li>The big blue rectangle on the left hand side which actually should be the application menu button (which is supposed to fill that white rectangle underneath the QAT).</li><li>When you mouse over ribbon buttons, the appear and remain blurred (middle section).</li><li>The "system menu" (minimize, maximize and close buttons) in the top right remains black after you hovered over it -- it should have a white backgorund again.</li></ul><div>These are all issues CodeJock is supposed to solve, not Microsoft.<br></div></div>]]>
   </description>
   <pubDate>Tue, 20 Sep 2022 10:23:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78532&amp;title=add-support-for-system-enhanced-scaling#78532</guid>
  </item> 
  <item>
   <title><![CDATA[Add support for &quot;system enhanced scaling&quot; : I see that value and as I noted,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78530&amp;title=add-support-for-system-enhanced-scaling#78530</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 24320<br /><strong>Posted:</strong> 19 September 2022 at 3:21pm<br /><br /><div>I see that value and as I noted, I just pass it on to the other API. Again, what are you seeing you think needs to be improved by CJ?</div><div><br></div><div>I have made local improvements for some features like dragging docking panes across multiple monitors that have differing DPI scale factors. But, there is nothing I can do about MFC dialogs. Even Microsoft has closed cases I opened against MFC by essentially saying use a different awareness.</div><div><br></div><div>Example - just build a MFC old fashioned app with toolbars and don't use their default (which I think is per monitor). Then float a toolbar and try to drag it to another monitor. I have my main monitor set to my 4k scaled at 200%. I can't drag nor resize the MFC floating frame window that hosts the toolbar and get consistent results.</div><div><br></div><div>MS Inking also only works for per monitor aware (we use that subsystem in our app) and again, we were told, don't use a setting that doesn't work for MS code.</div><div><br></div><div>As I noted, MS told us they know about all the problems in their Apps. Spyxx, Visual Studio and others. Visual Studio find and replace will often show up as a tiny window until I click it. Other MS windows do the same. We were told "wait for the virtual DPI system" they are working on.</div><div><br></div><div>And don't even try using multiple monitors with various scaling and then connect from another box using remote desktop. When I get back to the office and sign in, I often find Outlook mail windows are humongous. I have to drag, resize, drag, resize ... until the mail window finally is not extended out to New Mexico.<br></div>]]>
   </description>
   <pubDate>Mon, 19 Sep 2022 15:21:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78530&amp;title=add-support-for-system-enhanced-scaling#78530</guid>
  </item> 
  <item>
   <title><![CDATA[Add support for &quot;system enhanced scaling&quot; :   rdhd wrote:When you set an...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78528&amp;title=add-support-for-system-enhanced-scaling#78528</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9275">mnissl</a><br /><strong>Subject:</strong> 24320<br /><strong>Posted:</strong> 16 September 2022 at 1:09pm<br /><br /><div><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by rdhd" alt="Originally posted by rdhd" style="vertical-align: text-bottom;" /> <strong>rdhd wrote:</strong><br /><br /></div><div>When you set an app to be GDI DPI scaled, GetThreadDpiAwarenessContext returns a value which when passed to GetAwarenessFromDpiAwarenessContext will return DPI_AWARENESS_UNAWARE.</div><div></td></tr></table> <br></div><div><br></div><div>Yes, the app is DPI-unaware: the app is not aware that it is being GDI scaled. Functions like <font face="Courier New, Courier, mono">GetWindowRect()</font> return logical, not physcial coordinates.<br></div><div><br></div><div>But <font face="Courier New, Courier, mono">GetThreadDpiAwarenessContext()</font> is your friend: it will tell you that the context is <font face="Courier New, Courier, mono">DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED</font>.</div><div><br></div><div>This is how an app can detect that GDI scaling is performed:<br></div><div><br></div><div><font face="Courier New, Courier, mono">const auto context = ::GetThreadDpiAwarenessContext();<br>ASSERT(::AreDpiAwarenessContextsEqual(DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED, context));</font><br></div>]]>
   </description>
   <pubDate>Fri, 16 Sep 2022 13:09:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78528&amp;title=add-support-for-system-enhanced-scaling#78528</guid>
  </item> 
  <item>
   <title><![CDATA[Add support for &quot;system enhanced scaling&quot; : When you build an MFC app, even...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78526&amp;title=add-support-for-system-enhanced-scaling#78526</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 24320<br /><strong>Posted:</strong> 16 September 2022 at 9:56am<br /><br /><div>When you build an MFC app, even with VS 2022, there is no choice for GDP+ scaling in the project setting's manifest property page.<br></div><div><br></div><div>When you set an app to be GDI DPI scaled, GetThreadDpiAwarenessContext returns a value which when passed to GetAwarenessFromDpiAwarenessContext will return DPI_AWARENESS_UNAWARE. That value is the same value you get it you set your awareness to "None" in the MFC project manifest setting.</div><div><br></div><div>Essentially, I have not seen any difference when asking the thread for its context between DPI_AWARENESS_CONTEXT_UNAWARE and DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED.</div><div><br></div><div>The only thing that is aware, is GDI itself from what I've ever been able to tell.</div><div><br></div><div>So, how do you determine programmatically what the awareness is?<br></div>]]>
   </description>
   <pubDate>Fri, 16 Sep 2022 09:56:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78526&amp;title=add-support-for-system-enhanced-scaling#78526</guid>
  </item> 
  <item>
   <title><![CDATA[Add support for &quot;system enhanced scaling&quot; : I&amp;#039;m not sure CJ can do much...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78525&amp;title=add-support-for-system-enhanced-scaling#78525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9275">mnissl</a><br /><strong>Subject:</strong> 24320<br /><strong>Posted:</strong> 14 September 2022 at 4:15am<br /><br /><div>&#091;QUOTE=rdhd&#093;</div><div>I'm not sure CJ can do much about making GDI scaling better.</div><div>&#091;/QUOTE</div><div><br></div><div>Of course they can: while a lot of things work out of the box with GDI scaling, some code needs to be adjusted. The very same procedure as with supporting true DPI awareness.</div><div><br></div><div>GDI scaling is crucial for MFC applications: there a lot of controls and applications out there which will never support HDPI. GDI scaling is a way to make most of them look acceptably good without touching the source code.</div><div><br></div><div>As Codejock made their controls DPI aware, they should also make them compatible with GDI scaling.</div>]]>
   </description>
   <pubDate>Wed, 14 Sep 2022 04:15:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78525&amp;title=add-support-for-system-enhanced-scaling#78525</guid>
  </item> 
  <item>
   <title><![CDATA[Add support for &quot;system enhanced scaling&quot; : I tried this scaling and the results...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78517&amp;title=add-support-for-system-enhanced-scaling#78517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 24320<br /><strong>Posted:</strong> 30 August 2022 at 11:19am<br /><br /><div>I tried this scaling and the results were pretty sad across the board. Microsoft indicated they knew this and were working on yet another approach via a "virtual DPI" system.</div><div><br></div><div>I'm not sure CJ can do much about making GDI scaling better.<br></div>]]>
   </description>
   <pubDate>Tue, 30 Aug 2022 11:19:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78517&amp;title=add-support-for-system-enhanced-scaling#78517</guid>
  </item> 
  <item>
   <title><![CDATA[Add support for &quot;system enhanced scaling&quot; : In 2017, Microsoft introduced...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78513&amp;title=add-support-for-system-enhanced-scaling#78513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9275">mnissl</a><br /><strong>Subject:</strong> 24320<br /><strong>Posted:</strong> 23 August 2022 at 8:46am<br /><br /><div><font size="2" face="Arial, Helvetica, sans-serif">In 2017, Microsoft introduced "GDI scaling" (<a href="https://blogs.windows.com/windowsdeveloper/2017/05/19/improving-high-dpi-experience-gdi-based-desktop-apps/" target="_blank" rel="nofollow">https://blogs.windows.com/windowsdeveloper/2017/05/19/improving-high-dpi-experience-gdi-based-desktop-apps/</a>) for DPI-unaware applications where it is too much work or simply possible to make them DPI aware.</font></div><div><font size="2" face="Arial, Helvetica, sans-serif"><br></font></div><div><font size="2" face="Arial, Helvetica, sans-serif">"GDI scaling" is also referred to as "enhanced system scaling" and can be activated in the application manifest or by reaching out to the properties dialog of the application file, see section "<span style="font-weight: normal;">Configuring a local app to run with enhanced system scaling" in the blog article provided above.<br></span></font></div><div><font size="2" face="Arial, Helvetica, sans-serif"><br></font></div><div><font size="2" face="Arial, Helvetica, sans-serif">While Toolkit Pro made progress to be DPI aware, there are lots of glitches when it is used with GDI scaling, especially when used with non-integral scale factors like 250%:</font></div><div><font size="2" face="Arial, Helvetica, sans-serif"><br></font></div><div><font size="2" face="Arial, Helvetica, sans-serif"><img src="uploads/9275/ToolkitPro_20_3_at_250_scaling.png" height="725" width="3210" border="0" /><br></font></div>]]>
   </description>
   <pubDate>Tue, 23 Aug 2022 08:46:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24320&amp;PID=78513&amp;title=add-support-for-system-enhanced-scaling#78513</guid>
  </item> 
 </channel>
</rss>