<?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 : C# ActiveX Drawing Problems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : C# ActiveX Drawing Problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 10:03:57 +0000</pubDate>
  <lastBuildDate>Mon, 23 Oct 2006 17:28: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=5347</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[C# ActiveX Drawing Problems : I am currently having a problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5347&amp;PID=16749&amp;title=c-activex-drawing-problems#16749</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1977">mzuber</a><br /><strong>Subject:</strong> 5347<br /><strong>Posted:</strong> 23 October 2006 at 5:28pm<br /><br /><P>I am currently having a problem with resizing controls written in C# when they are in a floating window. I have discovered that the issue is with CreateControl - the code currently passes the main application window in as the parent.&nbsp; With C# controls, this means that they will only redraw themselves up to the size of their parent window.&nbsp; This is only an issue when they are contained in a floating window which resizes larger than the main application window.&nbsp;&nbsp;</P><DIV>My attempted solution was to pass in the CXTPDockingPaneTabbedContainer* as the parent window.&nbsp; If the pane starts out floating, then this solution actually works.&nbsp; If the pane starts docked, and is made floating,&nbsp;this causes huge problems. The docked pane is destroyed when it is floated, which then destroys any controls which listed it as their parent.&nbsp; I have tried forcing the C# controls to set their parent to the main application window before the float occurs, then setting the parent back to the floating container, but this doesn't work - the controls are still destroyed.&nbsp; I should mention that if I pass in the application window to CreateControl, then do a SetParent afterwards with the tabbed container, the controls still redraw incorrectly.&nbsp; Is their any way to allow the C# controls&nbsp;to use the tabbed container as their parent for redrawing?&nbsp; This might fundamentally be an MFC issue, and I just don't understand some small step that is necessary to switch the container for an ActiveX control.&nbsp; Either way, I appreciate any help you can provide.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,<BR>Michael Zuber</DIV>]]>
   </description>
   <pubDate>Mon, 23 Oct 2006 17:28:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5347&amp;PID=16749&amp;title=c-activex-drawing-problems#16749</guid>
  </item> 
 </channel>
</rss>