<?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 : CXTPTaskDialog relative positioning bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTPTaskDialog relative positioning bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 28 Jun 2026 19:04:00 +0000</pubDate>
  <lastBuildDate>Mon, 02 Aug 2010 18:58:53 +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=17052</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[CXTPTaskDialog relative positioning bug : I noticed that CXTPTaskDialog...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17052&amp;PID=59578&amp;title=cxtptaskdialog-relative-positioning-bug#59578</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3810">flashk</a><br /><strong>Subject:</strong> 17052<br /><strong>Posted:</strong> 02 August 2010 at 6:58pm<br /><br />I noticed that CXTPTaskDialog does not properly position itself relative to the parent window if you don't actually specify a parent window in the constructor. I looked through the code, and the main application window is being used as the parent, but it's not being used to perform relative positioning of the dialog.<br /><br />The fix for this is very simple. Just add the following line of code at the beginning of the <strong>CXTPTaskDialogClient::CreateClient</strong> method:<br /><br /><table width="99%"><tr><td><pre class="BBcode">m_pConfig-&gt;hwndParent = GetParent()-&gt;GetSafeHwnd();</pre></td></tr></table><br />This syncs the internal <strong>hwndParent</strong> parent field of the <strong>CXTPTaskDialogClient</strong> class with the real parent of the dialog.<br /><br />With this fix the CXTPTaskDialog will now behave more similarly to the standard CDialog class.<br /><br />Hopefully this fix can be included in the next release.]]>
   </description>
   <pubDate>Mon, 02 Aug 2010 18:58:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17052&amp;PID=59578&amp;title=cxtptaskdialog-relative-positioning-bug#59578</guid>
  </item> 
 </channel>
</rss>