<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/win32-framework/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/win32-framework/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/win32-framework/support-requests/</id><updated>2022-09-08T01:46:20.230000Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>#9 CResizer issue on HighDPI-aware dialog</title><link href="https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#cae5" rel="alternate"/><published>2022-09-08T01:46:20.230000Z</published><updated>2022-09-08T01:46:20.230000Z</updated><author><name>David</name><uri>https://sourceforge.net/u/david_nash/</uri></author><id>https://sourceforge.net7ac6654c7572b23ef6cdf851d51bad07863dcc2c</id><summary type="html">&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;</summary></entry><entry><title>#10 CBitmap attached handle not deleted</title><link href="https://sourceforge.net/p/win32-framework/support-requests/10/?limit=25#debb" rel="alternate"/><published>2021-05-16T06:32:25.758000Z</published><updated>2021-05-16T06:32:25.758000Z</updated><author><name>David</name><uri>https://sourceforge.net/u/david_nash/</uri></author><id>https://sourceforge.net858bf9f6c5116a5f71b83c774364ab8d9faf92b0</id><summary type="html">&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;</summary></entry><entry><title>#10 CBitmap attached handle not deleted</title><link href="https://sourceforge.net/p/win32-framework/support-requests/10/?limit=25#8b43" rel="alternate"/><published>2021-05-14T06:40:18.857000Z</published><updated>2021-05-14T06:40:18.857000Z</updated><author><name>Claudio Nicora</name><uri>https://sourceforge.net/u/nicorac/</uri></author><id>https://sourceforge.net1fc69471c8457bb20c8a1160ea280851b040635b</id><summary type="html">&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;</summary></entry><entry><title>#10 CBitmap attached handle not deleted</title><link href="https://sourceforge.net/p/win32-framework/support-requests/10/?limit=25#9fa8" rel="alternate"/><published>2021-05-14T03:47:21.764000Z</published><updated>2021-05-14T03:47:21.764000Z</updated><author><name>David</name><uri>https://sourceforge.net/u/david_nash/</uri></author><id>https://sourceforge.netc701ad4a3e20dabbc6c9b80359f5c265d0f9dc00</id><summary type="html">&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;</summary></entry><entry><title>CBitmap attached handle not deleted</title><link href="https://sourceforge.net/p/win32-framework/support-requests/10/" rel="alternate"/><published>2021-05-11T22:48:52.299000Z</published><updated>2021-05-11T22:48:52.299000Z</updated><author><name>Claudio Nicora</name><uri>https://sourceforge.net/u/nicorac/</uri></author><id>https://sourceforge.net322ecca7da1176f0ecdda0d8ae0433f3ee986812</id><summary type="html">&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;</summary></entry><entry><title>CBitmap attached handle not deleted</title><link href="https://sourceforge.net/p/win32-framework/support-requests/10/" rel="alternate"/><published>2021-05-11T22:48:52.299000Z</published><updated>2021-05-11T22:48:52.299000Z</updated><author><name>Claudio Nicora</name><uri>https://sourceforge.net/u/nicorac/</uri></author><id>https://sourceforge.net56e4fe48b6c93c95a9f42f2989b6952a9459590d</id><summary type="html">&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;</summary></entry><entry><title>#9 CResizer issue on HighDPI-aware dialog</title><link href="https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#c0b7" rel="alternate"/><published>2021-04-30T12:33:07.494000Z</published><updated>2021-04-30T12:33:07.494000Z</updated><author><name>David</name><uri>https://sourceforge.net/u/david_nash/</uri></author><id>https://sourceforge.net18389cabdc5e22712de55e91858ce29c85ce6ba7</id><summary type="html">&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;</summary></entry><entry><title>#9 CResizer issue on HighDPI-aware dialog</title><link href="https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#2424" rel="alternate"/><published>2021-04-30T06:45:28.224000Z</published><updated>2021-04-30T06:45:28.224000Z</updated><author><name>Claudio Nicora</name><uri>https://sourceforge.net/u/nicorac/</uri></author><id>https://sourceforge.netf8bbbad202524f76c6affe4754040444111c693a</id><summary type="html">&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;</summary></entry><entry><title>#9 CResizer issue on HighDPI-aware dialog</title><link href="https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#35a6" rel="alternate"/><published>2021-04-29T06:55:12.613000Z</published><updated>2021-04-29T06:55:12.613000Z</updated><author><name>David</name><uri>https://sourceforge.net/u/david_nash/</uri></author><id>https://sourceforge.net0b839b674ba298bbeb67cb836203fde654d412d5</id><summary type="html">&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;</summary></entry><entry><title>#9 CResizer issue on HighDPI-aware dialog</title><link href="https://sourceforge.net/p/win32-framework/support-requests/9/?limit=25#0816" rel="alternate"/><published>2021-04-29T06:50:25.569000Z</published><updated>2021-04-29T06:50:25.569000Z</updated><author><name>David</name><uri>https://sourceforge.net/u/david_nash/</uri></author><id>https://sourceforge.net0033065bedc00d31562a9b182bf604cba5f596c6</id><summary type="html">&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;</summary></entry></feed>