<?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 : CXTResizeDialog + OCX = problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTResizeDialog + OCX = problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 15:53:01 +0000</pubDate>
  <lastBuildDate>Wed, 08 Oct 2008 07:47:15 +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=12369</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[CXTResizeDialog + OCX = problem : XTP 12.0.1. This error only occurs...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12369&amp;PID=41763&amp;title=cxtresizedialog-ocx-problem#41763</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 12369<br /><strong>Posted:</strong> 08 October 2008 at 7:47am<br /><br /><P>XTP 12.0.1. This error only occurs for <EM>some</EM> OCX controls (mainly our own).</P><DIV>I have a dialog with an OCX control.</DIV><DIV>&nbsp;</DIV><DIV>BOOL CMyDialog::OnInitDialog()</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#010001 size=2>SetFlag</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>xtResizeNoSizeIcon</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;</FONT>CXTResizeDialog::OnInitDialog();</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; SetResize(...);</DIV><DIV>&nbsp;&nbsp;&nbsp; SetResize(IDC_OCX_CONTROL, ...);</DIV><DIV>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; // This solves the problem:</DIV><DIV>&nbsp;&nbsp;&nbsp; //&nbsp;CRect rect;</DIV><DIV>&nbsp;&nbsp;&nbsp; // GetClientRect(rect);</DIV><DIV>&nbsp;&nbsp;&nbsp; // int cx = rect.Width();</DIV><DIV>&nbsp;&nbsp;&nbsp; // int cy = rect.Height();</DIV><DIV>&nbsp;&nbsp;&nbsp; // <FONT color=#010001 size=2>SendMessage</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>WM_SIZE</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>SIZE_RESTORED</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>MAKELPARAM</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>cx</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>cy</FONT><FONT size=2>));</FONT></DIV><DIV>&nbsp;&nbsp;&nbsp; return TRUE;</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>The OCX will not be sized properly until a WM_SIZE message is sent! What could be the cause?</DIV>]]>
   </description>
   <pubDate>Wed, 08 Oct 2008 07:47:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12369&amp;PID=41763&amp;title=cxtresizedialog-ocx-problem#41763</guid>
  </item> 
 </channel>
</rss>