<?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 : Window title icon in CXTPTaskDialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Window title icon in CXTPTaskDialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:06:57 +0000</pubDate>
  <lastBuildDate>Mon, 20 Dec 2010 04:37:17 +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=17704</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[Window title icon in CXTPTaskDialog : Hello,Indeed strange - if you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17704&amp;PID=61918&amp;title=window-title-icon-in-cxtptaskdialog#61918</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17704<br /><strong>Posted:</strong> 20 December 2010 at 4:37am<br /><br />Hello,<div><br></div><div>Indeed strange - if you set some parent for dilaog:</div><div>CXTPTaskDialog taskDlg(<b>this</b>); // some parent class</div><div>then it doesn't show icon.</div><div><br></div><div>&nbsp;when you set&nbsp;<span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">SetUseComCtl32(TRUE) we only call system&nbsp;TaskDialogIndirect function so I not really sure why setting parent make this difference.</span></div>]]>
   </description>
   <pubDate>Mon, 20 Dec 2010 04:37:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17704&amp;PID=61918&amp;title=window-title-icon-in-cxtptaskdialog#61918</guid>
  </item> 
  <item>
   <title><![CDATA[Window title icon in CXTPTaskDialog :   Hi Folks,I&amp;#039;m facing a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17704&amp;PID=61908&amp;title=window-title-icon-in-cxtptaskdialog#61908</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=313">Marco1</a><br /><strong>Subject:</strong> 17704<br /><strong>Posted:</strong> 19 December 2010 at 4:35pm<br /><br />Hi Folks,<br>I'm facing a really strange problem. I construct a TaskDlg the following way:<br><br>CXTPTaskDialog taskDlg;<br>taskDlg.SetUseComCtl32(TRUE);<br>//&nbsp; taskDlg.SetCommonButtons(TDCBF_CANCEL_BUTTON);<br>//&nbsp; taskDlg.EnableCancellation();<br>taskDlg.SetWindowTitle(_T("Update"));<br>taskDlg.SetMainInstruction(_T("lalala"));<br>taskDlg.SetContent(_T("Page 1"));<br>taskDlg.SetMainIcon(MAKEINTRESOURCE(IDI_DOWNLOAD));<br>taskDlg.AddButton(_T("Start"), ID_BUTTON_NEXT);<br>taskDlg.DoModal();<br><br>Really nothing fancy.<br>Now, if I add a button with the ID IDCANCEL or if I uncomment one of the both lines above and I get a Cancel Button (okay), a red Dlg close box and an icon in the window title. Why that, why the icon?<br>I investigated the sample, but I never see an icon in the window title.<br><br>Whats wrong with my task dlg? How can I avoid the window title icon? I only want the main icon - not two same icons.<br><br>If I set SetUseComCtl32 to false, the window title icon disapears.<br>Any hints appreciated! (running on Win7 with MfC 13.4.2)<br><br><img src="uploads/313/TaskDlgIc&#111;n.png" height="246" width="376" border="0" /><br>And the SetMainIcon() seems not to work in OnDialogConstructed. The main icon remains unset.<br>In CJ Timer sample app, setting the icon via the same method is no problem, but something must be different here...<br><br>]]>
   </description>
   <pubDate>Sun, 19 Dec 2010 16:35:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17704&amp;PID=61908&amp;title=window-title-icon-in-cxtptaskdialog#61908</guid>
  </item> 
 </channel>
</rss>