<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>mfc on Roger&#39;s Blog</title>
		<link>https://blog.differentpla.net/tags/mfc/</link>
		<description>Recent content in mfc on Roger&#39;s Blog</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Wed, 19 May 2004 14:38:00 +0000</lastBuildDate>
		
			<atom:link href="https://blog.differentpla.net/tags/mfc/feed.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Using CListCtrl::SortItems</title>
				<link>https://blog.differentpla.net/blog/2004/05/19/using-clistctrlsortitems/</link>
				<pubDate>Wed, 19 May 2004 14:38:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/05/19/using-clistctrlsortitems/</guid>
				<description>&lt;p&gt;In my &lt;a href=&#34;https://blog.differentpla.net/blog/2004/05/19/handling-lvn-getdispinfo/&#34;&gt;previous article&lt;/a&gt;, I explained how to use &lt;code&gt;LPSTR_TEXTCALLBACK&lt;/code&gt; and &lt;code&gt;LVN_GETDISPINFO&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Handling LVN_GETDISPINFO</title>
				<link>https://blog.differentpla.net/blog/2004/05/19/handling-lvn-getdispinfo/</link>
				<pubDate>Wed, 19 May 2004 14:24:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/05/19/handling-lvn-getdispinfo/</guid>
				<description>&lt;p&gt;If you specify &lt;code&gt;LPSTR_TEXTCALLBACK&lt;/code&gt; when inserting an item into a ListView control, it no longer supports sorting; you can&amp;rsquo;t click on the column heading to sort the list control.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Drawing a drop shadow: using a mono bitmap</title>
				<link>https://blog.differentpla.net/blog/2004/05/11/drawing-a-drop-shadow-using-a-mono-bitmap/</link>
				<pubDate>Tue, 11 May 2004 09:24:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/05/11/drawing-a-drop-shadow-using-a-mono-bitmap/</guid>
				<description>&lt;p&gt;In an &lt;a href=&#34;https://blog.differentpla.net/blog/2004/05/11/drawing-a-drop-shadow-from-imagelist/&#34;&gt;earlier article&lt;/a&gt;, I showed how to draw a drop shadow with the help of the ImageList control.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Drawing an item from an Image List with a drop shadow</title>
				<link>https://blog.differentpla.net/blog/2004/05/11/drawing-a-drop-shadow-from-imagelist/</link>
				<pubDate>Tue, 11 May 2004 09:24:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/05/11/drawing-a-drop-shadow-from-imagelist/</guid>
				<description>&lt;p&gt;The documentation for &lt;code&gt;ImageList_DrawIndirect&lt;/code&gt; seems to imply that it can draw an item from an ImageList control with a drop shadow.  Unfortunately, it doesn&amp;rsquo;t seem to be supported.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Direct access to a Bitmap using GetDIBits and SetDIBits</title>
				<link>https://blog.differentpla.net/blog/2004/04/02/direct-access-to-a-bitmap-using-getdibits-and-setdibits/</link>
				<pubDate>Fri, 02 Apr 2004 11:28:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/04/02/direct-access-to-a-bitmap-using-getdibits-and-setdibits/</guid>
				<description>&lt;p&gt;In the &lt;a href=&#34;https://blog.differentpla.net/blog/2004/04/02/grabbing-a-snapshot-of-the-screen/&#34;&gt;Grabbing a snapshot of the screen&lt;/a&gt; article, I said: &amp;ldquo;I&amp;rsquo;m planning on altering the snapshot before displaying it.&amp;rdquo;. This article shows how to alter a bitmap by directly accessing the raw bits.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Grabbing a snapshot of the screen</title>
				<link>https://blog.differentpla.net/blog/2004/04/02/grabbing-a-snapshot-of-the-screen/</link>
				<pubDate>Fri, 02 Apr 2004 10:51:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/04/02/grabbing-a-snapshot-of-the-screen/</guid>
				<description>&lt;p&gt;Some (simple) code that shows how to grab a snapshot of the screen and display it in a window.&lt;/p&gt;</description>
			</item>
			<item>
				<title>CTreeCtrl, TrackPopupMenu and CCmdTarget</title>
				<link>https://blog.differentpla.net/blog/2004/03/31/ctreectrl-trackpopupmenu-and-ccmdtarget/</link>
				<pubDate>Wed, 31 Mar 2004 17:17:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/03/31/ctreectrl-trackpopupmenu-and-ccmdtarget/</guid>
				<description>&lt;p&gt;Some twisted code showing how to combine MFC&amp;rsquo;s &lt;code&gt;CTreeCtrl&lt;/code&gt;, &lt;code&gt;CCmdTarget&lt;/code&gt; and &lt;code&gt;TrackPopupMenu&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using DrawDragRect to rubber-band a selection</title>
				<link>https://blog.differentpla.net/blog/2004/03/31/using-drawdragrect-to-rubber-band-a-selection/</link>
				<pubDate>Wed, 31 Mar 2004 13:54:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/03/31/using-drawdragrect-to-rubber-band-a-selection/</guid>
				<description>&lt;p&gt;If you&amp;rsquo;re allowing the user to &amp;ldquo;rubber-band&amp;rdquo; a selection in your application, you might choose to use the &lt;code&gt;DrawDragRect&lt;/code&gt; function. Here&amp;rsquo;s how.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Running Long-lived Tasks in a Background Thread</title>
				<link>https://blog.differentpla.net/blog/2004/02/27/running-long-lived-tasks-in-a-background-thread/</link>
				<pubDate>Fri, 27 Feb 2004 13:00:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/02/27/running-long-lived-tasks-in-a-background-thread/</guid>
				<description>&lt;p&gt;In earlier articles, &lt;a href=&#34;https://blog.differentpla.net/blog/2004/01/08/displaying-progress-in-a-wizard/&#34;&gt;Displaying Progress in a Wizard&lt;/a&gt; and &lt;a href=&#34;https://blog.differentpla.net/blog/2004/02/27/cancelling-long-lived-tasks-from-a-wizard/&#34;&gt;Cancelling Long-Lived Tasks from a Wizard&lt;/a&gt;, I discussed how to run a long-lived task from a wizard and how to display progress in the wizard.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Cancelling Long-Lived Tasks from a Wizard</title>
				<link>https://blog.differentpla.net/blog/2004/02/27/cancelling-long-lived-tasks-from-a-wizard/</link>
				<pubDate>Fri, 27 Feb 2004 10:23:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/02/27/cancelling-long-lived-tasks-from-a-wizard/</guid>
				<description>&lt;p&gt;This article, a follow-up to &lt;a href=&#34;https://blog.differentpla.net/blog/2004/01/08/displaying-progress-in-a-wizard/&#34;&gt;this one&lt;/a&gt;, shows how to modify our project to allow the user to cancel the long-lived operation.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Misleading Error: &#34;Parent class code is read only&#34; (Visual Studio.NET)</title>
				<link>https://blog.differentpla.net/blog/2004/01/29/misleading-error-parent-class-code-is-read-only-visual-studionet/</link>
				<pubDate>Thu, 29 Jan 2004 21:09:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/29/misleading-error-parent-class-code-is-read-only-visual-studionet/</guid>
				<description>&lt;p&gt;I just had a strange error message from Visual Studio.NET when attempting to add a handler for &lt;code&gt;WM_DESTROY&lt;/code&gt; to a C++&#xA;dialog class. It said:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using a modal or modeless dialog as a main window</title>
				<link>https://blog.differentpla.net/blog/2004/01/29/using-a-modal-or-modeless-dialog-as-a-main-window/</link>
				<pubDate>Thu, 29 Jan 2004 20:37:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/29/using-a-modal-or-modeless-dialog-as-a-main-window/</guid>
				<description>&lt;h2 id=&#34;using-a-modal-dialog-as-a-main-window&#34;&gt;Using a modal dialog as a main window&lt;a href=&#34;#using-a-modal-dialog-as-a-main-window&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;If you ask the MFC AppWizard to generate a dialog-based application, it generates code that looks like this:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Displaying a tooltip when the user drags the scroll thumb</title>
				<link>https://blog.differentpla.net/blog/2004/01/12/displaying-a-tooltip-when-the-user-drags-the-scroll-thumb/</link>
				<pubDate>Mon, 12 Jan 2004 12:24:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/12/displaying-a-tooltip-when-the-user-drags-the-scroll-thumb/</guid>
				<description>&lt;h2 id=&#34;you-wanna-do-this&#34;&gt;You wanna do this?&lt;a href=&#34;#you-wanna-do-this&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;&#34; height=&#34;407&#34; id=&#34;h-rh-i-0&#34; src=&#34;https://blog.differentpla.net/blog/2004/01/12/displaying-a-tooltip-when-the-user-drags-the-scroll-thumb/thumbtrack_tooltips.png&#34; width=&#34;240&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;heres-how&#34;&gt;Here&amp;rsquo;s How:&lt;a href=&#34;#heres-how&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; For details on how to do the full-row colouring, see &lt;a href=&#34;https://blog.differentpla.net/blog/2004/01/12/colouring-alternate-rows-in-clistctrl/&#34;&gt;this&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Colouring alternate rows in a CListCtrl</title>
				<link>https://blog.differentpla.net/blog/2004/01/12/colouring-alternate-rows-in-clistctrl/</link>
				<pubDate>Mon, 12 Jan 2004 12:23:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/12/colouring-alternate-rows-in-clistctrl/</guid>
				<description>&lt;p&gt;Nothing particularly strenuous: Just handle &lt;code&gt;NM_CUSTOMDRAW&lt;/code&gt; and play with &lt;code&gt;clrTextBk&lt;/code&gt;. The only real surprise is that you have to return &lt;code&gt;CDRF_NEWFONT&lt;/code&gt; from your handler to get the new colour used.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Windows ListView Control Returns -1 From LVM_INSERTITEM</title>
				<link>https://blog.differentpla.net/blog/2004/01/12/windows-listview-control-returns-1-from-lvm_insertitem/</link>
				<pubDate>Mon, 12 Jan 2004 12:21:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/12/windows-listview-control-returns-1-from-lvm_insertitem/</guid>
				<description>&lt;p&gt;I just spent the best part of a morning chasing this one down, so I thought I&amp;rsquo;d share it with you:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Disabling the Cancel button in a Wizard</title>
				<link>https://blog.differentpla.net/blog/2004/01/09/disabling-the-cancel-button-in-a-wizard/</link>
				<pubDate>Fri, 09 Jan 2004 13:03:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/09/disabling-the-cancel-button-in-a-wizard/</guid>
				<description>&lt;p&gt;&lt;code&gt;CPropertySheet&lt;/code&gt; provides the &lt;code&gt;SetWizardButtons&lt;/code&gt; function, allowing you to enable or disable the &amp;ldquo;Back&amp;rdquo; or &amp;ldquo;Next&amp;rdquo; buttons. It doesn&amp;rsquo;t, however, allow you to disable the &amp;ldquo;Cancel&amp;rdquo; button.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Displaying Progress in a Wizard</title>
				<link>https://blog.differentpla.net/blog/2004/01/08/displaying-progress-in-a-wizard/</link>
				<pubDate>Thu, 08 Jan 2004 18:24:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/08/displaying-progress-in-a-wizard/</guid>
				<description>&lt;p&gt;I&amp;rsquo;m adding a wizard to the program that I&amp;rsquo;m currently working on. The wizard walks the user through importing some information from a file. I&amp;rsquo;d like to be able to display the import progress as a seamless part of the wizard.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Wizard97: Watermark and Header Graphics are repeated</title>
				<link>https://blog.differentpla.net/blog/2004/01/08/wizard97-watermark-and-header-graphics-are-repeated/</link>
				<pubDate>Thu, 08 Jan 2004 17:14:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/08/wizard97-watermark-and-header-graphics-are-repeated/</guid>
				<description>&lt;p&gt;I was adding a new wizard to the program that I&amp;rsquo;m currently working on, so I copied some code from a Wizard97 demo program that I wrote some time ago.&lt;/p&gt;&#xA;&lt;p&gt;When it comes up, the header and watermark graphics are displayed repeated.&lt;/p&gt;</description>
			</item>
			<item>
				<title>CPropertySheet vs CPropertySheetEx in Visual Studio .NET 2003</title>
				<link>https://blog.differentpla.net/blog/2004/01/08/cpropertysheet-vs-cpropertysheetex-in-visual-studio-net-2003/</link>
				<pubDate>Thu, 08 Jan 2004 17:05:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2004/01/08/cpropertysheet-vs-cpropertysheetex-in-visual-studio-net-2003/</guid>
				<description>&lt;p&gt;The program that I&amp;rsquo;m working on at the moment needs a wizard to walk the user through something, and I ran into a problem with IntelliSense.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using FindWindow in an MFC application</title>
				<link>https://blog.differentpla.net/blog/2003/08/05/findwindow-mfc/</link>
				<pubDate>Tue, 05 Aug 2003 12:46:22 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/08/05/findwindow-mfc/</guid>
				<description>&lt;p&gt;There are at least two reasons for using &lt;code&gt;FindWindow&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;To activate the previous instance of your application.&lt;/li&gt;&#xA;&lt;li&gt;To close your application while the installer is upgrading it.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;changing-window-class-names-in-mfc&#34;&gt;Changing window class names in MFC&lt;a href=&#34;#changing-window-class-names-in-mfc&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Unfortunately, &lt;code&gt;FindWindow&lt;/code&gt; is only really guaranteed to return your application&amp;rsquo;s main window if you use a unique class&#xA;name.  If you&amp;rsquo;re using MFC, you&amp;rsquo;ll find this a little difficult: MFC automatically generates class names of the form&#xA;&amp;ldquo;Afx:400000:8:10011:0:7e0c0b&amp;rdquo;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using ON_COMMAND_RANGE and ON_UPDATE_COMMAND_UI_RANGE</title>
				<link>https://blog.differentpla.net/blog/2003/07/07/using-on_command_range-and-on_update_command_ui_range/</link>
				<pubDate>Mon, 07 Jul 2003 17:13:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/07/07/using-on_command_range-and-on_update_command_ui_range/</guid>
				<description>&lt;p&gt;The &lt;code&gt;ON_COMMAND_RANGE&lt;/code&gt; and &lt;code&gt;ON_UPDATE_COMMAND_UI_RANGE&lt;/code&gt; macros are useful when you want to treat a group of commands&#xA;similarly. In this case, it&amp;rsquo;s the commands for changing list view style. The command IDs must be contiguous, and you&#xA;must specify the lower one first.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Many to One Dependencies</title>
				<link>https://blog.differentpla.net/blog/2003/04/17/dialog-mainwnd/</link>
				<pubDate>Thu, 17 Apr 2003 09:30:46 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/17/dialog-mainwnd/</guid>
				<description>&lt;h2 id=&#34;using-a-modal-dialog-as-a-main-window&#34;&gt;Using a modal dialog as a main window&lt;a href=&#34;#using-a-modal-dialog-as-a-main-window&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;If you ask the MFC AppWizard to generate a dialog-based application, it generates code that looks like this:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Putting control bars in a dialog</title>
				<link>https://blog.differentpla.net/blog/2003/04/17/putting-control-bars-in-a-dialog/</link>
				<pubDate>Thu, 17 Apr 2003 08:30:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/17/putting-control-bars-in-a-dialog/</guid>
				<description>&lt;p&gt;There&amp;rsquo;s some discussion of this in Microsoft Knowledge Base Article&#xA;&lt;a href=&#34;http://support.microsoft.com/default.aspx?scid=kb;en-us;141751&#34;&gt;Q141751&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC: Background Thread 4</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-background4/</link>
				<pubDate>Tue, 15 Apr 2003 11:54:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-background4/</guid>
				<description>&lt;p&gt;The reason that our previous example consumes 100% CPU is that it busy-waits while pumping messages. The correct answer&#xA;is to run the dialog box modally. However, we can&amp;rsquo;t (easily) use &lt;code&gt;DoModal&lt;/code&gt;, because this causes ordering problems. Do we&#xA;create the thread or the dialog first?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC: Background Thread 3</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-background3/</link>
				<pubDate>Tue, 15 Apr 2003 11:53:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-background3/</guid>
				<description>&lt;p&gt;One simple way to run the task in the background, while reporting progress, which still allows the dialog to be&#xA;repainted/moved correctly is to busy-wait for the background thread to finish, while pumping messages:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC: Background Thread 2</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-background2/</link>
				<pubDate>Tue, 15 Apr 2003 11:52:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-background2/</guid>
				<description>&lt;p&gt;We can solve the problem of the memory leak, and of the premature destructor call, by simply blocking until the thread&#xA;is finished:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC: Background Thread 1</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-background1/</link>
				<pubDate>Tue, 15 Apr 2003 11:51:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-background1/</guid>
				<description>&lt;p&gt;We add another button to the dialog:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-c++&#34; data-lang=&#34;c++&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;CBgthreadDlg&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;OnBackground&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;c1&#34;&gt;// Run on a background thread. Don&amp;#39;t wait for the thread to exit.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;TaskThread&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;t&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;t&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Start&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;();&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;p&gt;This uses the code from &lt;a href=&#34;https://blog.differentpla.net/blog/2003/04/15/win32-threads-in-c/&#34;&gt;here&lt;/a&gt; to implement the&#xA;thread class:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC: Foreground Thread 3</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-foreground3/</link>
				<pubDate>Tue, 15 Apr 2003 11:43:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-foreground3/</guid>
				<description>&lt;p&gt;Because we have progress reporting, we can make use of a progress dialog to partially solve all of these problems. In&#xA;Visual C++, select &amp;ldquo;Project|Add To Project|Components and Controls&amp;rdquo;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC: Foreground Thread 2</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-foreground2/</link>
				<pubDate>Tue, 15 Apr 2003 11:42:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-foreground2/</guid>
				<description>&lt;p&gt;We can deal with the first one (no feedback), by using an hourglass:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC: Foreground Thread 1</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-foreground1/</link>
				<pubDate>Tue, 15 Apr 2003 11:41:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-foreground1/</guid>
				<description>&lt;p&gt;Initially, we&amp;rsquo;ll run this as a foreground task. This will ensure that the code compiles and works before we get too&#xA;complicated. Also, it&amp;rsquo;ll show why we want this task to run as a background thread.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC: Sidebar: The Task</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-task/</link>
				<pubDate>Tue, 15 Apr 2003 11:30:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-task/</guid>
				<description></description>
			</item>
			<item>
				<title>Using background threads for long processes in MFC</title>
				<link>https://blog.differentpla.net/blog/2003/04/15/bgthreads-intro/</link>
				<pubDate>Tue, 15 Apr 2003 11:20:39 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2003/04/15/bgthreads-intro/</guid>
				<description>&lt;p&gt;It&amp;rsquo;s not easy to write a Windows program that takes a long time to do something and yet still seems responsive to the&#xA;user. Consider that you&amp;rsquo;ve got a single task that needs to be finished:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Including resources in Static Library projects</title>
				<link>https://blog.differentpla.net/blog/2002/07/31/resources-in-static-libs/</link>
				<pubDate>Wed, 31 Jul 2002 17:11:03 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2002/07/31/resources-in-static-libs/</guid>
				<description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;a href=&#34;#introduction&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Consider the following situation:&lt;/p&gt;&#xA;&lt;p&gt;You&amp;rsquo;ve got an MFC application, which uses a lot of static libraries to do a lot of the work. These libraries need to&#xA;interact with the user (perhaps they&amp;rsquo;ve got dialog boxes in them). Unfortunately, Visual C++ and MFC effectively force&#xA;you to store all of your resources in the main application .rc file. This makes it difficult to use the static library&#xA;(with the same resources) in multiple projects. Moreover, it makes the library dependent on the main application, for&#xA;the resource IDs.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Displaying a transparent CAnimateCtrl in a dialog</title>
				<link>https://blog.differentpla.net/blog/2001/03/29/displaying-a-transparent-canimatectrl-in-a-dialog/</link>
				<pubDate>Thu, 29 Mar 2001 23:00:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2001/03/29/displaying-a-transparent-canimatectrl-in-a-dialog/</guid>
				<description>&lt;p&gt;Microsoft&amp;rsquo;s knowledge base article, &lt;a href=&#34;http://support.microsoft.com/default.aspx?scid=kb;en-us;Q179907&#34;&gt;Q179907&lt;/a&gt; explains how to use a transparent CAnimateCtrl in a CView or a CDialog.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
