<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to support-requests</title><link>https://sourceforge.net/p/win32-framework/support-requests/</link><description>Recent changes to support-requests</description><atom:link href="https://sourceforge.net/p/win32-framework/support-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 08 Sep 2022 01:46:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/win32-framework/support-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>#9 CResizer issue on HighDPI-aware dialog</title><link>https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#cae5</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Thu, 08 Sep 2022 01:46:20 -0000</pubDate><guid>https://sourceforge.net7ac6654c7572b23ef6cdf851d51bad07863dcc2c</guid></item><item><title>#10 CBitmap attached handle not deleted</title><link>https://sourceforge.net/p/win32-framework/support-requests/10/?limit=25#debb</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: David&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Sun, 16 May 2021 06:32:25 -0000</pubDate><guid>https://sourceforge.net858bf9f6c5116a5f71b83c774364ab8d9faf92b0</guid></item><item><title>#10 CBitmap attached handle not deleted</title><link>https://sourceforge.net/p/win32-framework/support-requests/10/?limit=25#8b43</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I've patched it by adding a new &lt;code&gt;Attach()&lt;/code&gt; overload that exposes an &lt;code&gt;isManaged&lt;/code&gt; parameter.&lt;br/&gt;
Your solution is far better ;)&lt;/p&gt;
&lt;p&gt;Thanks for it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Claudio Nicora</dc:creator><pubDate>Fri, 14 May 2021 06:40:18 -0000</pubDate><guid>https://sourceforge.net1fc69471c8457bb20c8a1160ea280851b040635b</guid></item><item><title>#10 CBitmap attached handle not deleted</title><link>https://sourceforge.net/p/win32-framework/support-requests/10/?limit=25#9fa8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Claudio,&lt;/p&gt;
&lt;p&gt;The Attach for CBitmap is working as it was intended. The Win32++ library automatically deletes or destroys only those resources it created when their object goes out of scope. Resources created by other means such as direct calls to Win32 API functions won't be deleted.&lt;/p&gt;
&lt;p&gt;A CopyImage function has been added to CBitmap. This can create a new managed CBitmap from CopyImage. &lt;br/&gt;
Instead of  &lt;code&gt;bmp.Attach(::CopyImage(...));&lt;/code&gt; , you can now use &lt;code&gt;bmp.CopyImage(...);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You can download the latest snapshot of Win32++ from the Code Section on SourceForge&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
David&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Fri, 14 May 2021 03:47:21 -0000</pubDate><guid>https://sourceforge.netc701ad4a3e20dabbc6c9b80359f5c265d0f9dc00</guid></item><item><title>CBitmap attached handle not deleted</title><link>https://sourceforge.net/p/win32-framework/support-requests/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I use a &lt;code&gt;CBitmap&lt;/code&gt; object to "manage" a bitmap handle, initializing it with &lt;code&gt;bmp.Attach(::CopyImage(...));&lt;/code&gt; .&lt;/p&gt;
&lt;p&gt;Now, when my CBitmap object goes out of scope, the GDI handle is not deleted, because the &lt;code&gt;.Attach()&lt;/code&gt; method does not set the &lt;code&gt;m_pData-&amp;gt;isManagedObject&lt;/code&gt; field, which is tested by &lt;code&gt;.Release()&lt;/code&gt; method to delete it.&lt;/p&gt;
&lt;p&gt;As I can read &lt;a class="" href="https://stackoverflow.com/questions/34517877/mfc-class-attaches-gdi-bitmap-should-deleteobject-and-detach-be-used-in-the-des" rel="nofollow"&gt;here&lt;/a&gt;, MFC does delete GDI handles, even if set with &lt;code&gt;.Attach()&lt;/code&gt;...&lt;/p&gt;
&lt;p&gt;Deleting it manually makes CBitmap useless so... am I missing something?&lt;br/&gt;
How shall I manage a CBitmap handle obtained by a call to GDI function?&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Claudio Nicora</dc:creator><pubDate>Tue, 11 May 2021 22:48:52 -0000</pubDate><guid>https://sourceforge.net322ecca7da1176f0ecdda0d8ae0433f3ee986812</guid></item><item><title>CBitmap attached handle not deleted</title><link>https://sourceforge.net/p/win32-framework/support-requests/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 10 has been modified: CBitmap attached handle not deleted&lt;br/&gt;
Edited By: David (david_nash)&lt;br/&gt;
Status updated: 'open' =&amp;gt; 'closed'&lt;br/&gt;
Owner updated: None =&amp;gt; 'david_nash'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Claudio Nicora</dc:creator><pubDate>Tue, 11 May 2021 22:48:52 -0000</pubDate><guid>https://sourceforge.net56e4fe48b6c93c95a9f42f2989b6952a9459590d</guid></item><item><title>#9 CResizer issue on HighDPI-aware dialog</title><link>https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#c0b7</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Claudio,&lt;/p&gt;
&lt;p&gt;The minimum version of the operating system that supports the gdiScaling element is Windows 10 version 1703.&lt;/p&gt;
&lt;p&gt;I'd be happy to have a look at your CDpiAwareDialog when it is ready.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
David&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Fri, 30 Apr 2021 12:33:07 -0000</pubDate><guid>https://sourceforge.net18389cabdc5e22712de55e91858ce29c85ce6ba7</guid></item><item><title>#9 CResizer issue on HighDPI-aware dialog</title><link>https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#2424</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi David, thanks for it.&lt;br/&gt;
Will check it out, but I suppose it'll be supported starting from some Win10 version (1809...?).&lt;/p&gt;
&lt;p&gt;Anyway, meanwhile, I've subclassed CDialog to properly manage WM_DPICHANGED messages.&lt;br/&gt;
Once the message is received, I disable CResizer, let Windows properly resize the dialog (it only changes locations and sizes), then I scale fonts and reactivate CResizer with the new positions.&lt;br/&gt;
It works well and I'm satisfied ;)&lt;/p&gt;
&lt;p&gt;I've also switched my graphics (icons, bitmaps, ...) to vectorial versions (EMF and SVG), but that's another story.&lt;/p&gt;
&lt;p&gt;Once completed I could send you a cleaned up sample of my CDpiAwareDialog if you want to have a look.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Claudio Nicora</dc:creator><pubDate>Fri, 30 Apr 2021 06:45:28 -0000</pubDate><guid>https://sourceforge.netf8bbbad202524f76c6affe4754040444111c693a</guid></item><item><title>#9 CResizer issue on HighDPI-aware dialog</title><link>https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#35a6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Claudio,&lt;/p&gt;
&lt;p&gt;Try the attached minifest file in place of your current one.&lt;/p&gt;
&lt;p&gt;It utilises gdiScaling in place of PerMonitorV2-DPIAware. That should produce a much better result.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
David&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Thu, 29 Apr 2021 06:55:12 -0000</pubDate><guid>https://sourceforge.net0b839b674ba298bbeb67cb836203fde654d412d5</guid></item><item><title>#9 CResizer issue on HighDPI-aware dialog</title><link>https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#0816</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: closed --&amp;gt; open&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David</dc:creator><pubDate>Thu, 29 Apr 2021 06:50:25 -0000</pubDate><guid>https://sourceforge.net0033065bedc00d31562a9b182bf604cba5f596c6</guid></item></channel></rss>