<?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 : Resize dialog with SetWindowPos</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Resize dialog with SetWindowPos]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:21:13 +0000</pubDate>
  <lastBuildDate>Mon, 17 Feb 2014 08:07:04 +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=22208</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[Resize dialog with SetWindowPos : I have a few modal CXTPDialogs...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22208&amp;PID=72268&amp;title=resize-dialog-with-setwindowpos#72268</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6616">roan98dk</a><br /><strong>Subject:</strong> 22208<br /><strong>Posted:</strong> 17 February 2014 at 8:07am<br /><br /><div>I have a few modal CXTPDialogs in my MFC windows application, that behave strangely in random cases. My problem is that sometimes the dialog is not resized to fit the entire content.</div><div><br></div><div><span style="line-height: 1.4;">What is common in the failing cases is that the dialog is automatically resized to fit the content. In the cases where we expand the dialog it sometimes doesn't, and in cases where we make the dialog smaller it sometimes doesn't. In cases where there is a button to enable elements that resize the dialog, there are not problems. I am talking about dialogs resized in OnInitDialog.</span></div><div><br></div><div>When it comes to this kind of behavior, I must admit that I am no C++ or MFC expert. I guess it is because I am not resizing the dialog at the right moment, but then where would be the proper location (OnSize ?)</div><div><br></div><div>There is also no apparent connection between where it fails and where it doesn't. Problem is that I cannot replicate the scenario in development and it happens randomly with some customers running, Windows XP, Windows 7, Windows 8, etc.</div><div><br></div><div>I tried to find an example, but most relate to manual resizing by dragging the dialog window, but that is not the problem here.</div><div><br></div>I am using VS2013 with the new Update 1, but I compile my solution as v120_xp to keep backwards compatibily with Windows XP. The application is an SDI Windows application with ribbon and frames around windows using the Office2010.dll style.]]>
   </description>
   <pubDate>Mon, 17 Feb 2014 08:07:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22208&amp;PID=72268&amp;title=resize-dialog-with-setwindowpos#72268</guid>
  </item> 
 </channel>
</rss>