<?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 : MDI ChildFrame Repaint/Resize issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : MDI ChildFrame Repaint/Resize issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Apr 2026 23:51:04 +0000</pubDate>
  <lastBuildDate>Wed, 23 May 2007 15:03:46 +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=7216</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[MDI ChildFrame Repaint/Resize issue : DISREGARD [Once again, I just...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7216&amp;PID=23181&amp;title=mdi-childframe-repaint-resize-issue#23181</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3007">steve_murch</a><br /><strong>Subject:</strong> 7216<br /><strong>Posted:</strong> 23 May 2007 at 3:03pm<br /><br /><P>DISREGARD</P><DIV>&#091;Once again, I just knew that the moment I posted a question here, I'd find the mistake and it'd be a stupid one.</DIV><DIV>&nbsp;</DIV><DIV>If anyone else runs into this, the problem was that in MainFrm.cpp, I had this:</DIV><DIV>&nbsp;</DIV><DIV>// wrong</DIV><DIV><FONT color=#020002 size=2>IMPLEMENT_DYNAMIC</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>CMainFrame</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>CXTPFrameWnd</FONT><FONT size=2>)</FONT><FONT color=#020002 size=2>BEGIN_MESSAGE_MAP</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>CMainFrame</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>CXTPFrameWnd</FONT><FONT size=2>)</DIV><DIV><DIV>instead of this:</DIV><DIV>&nbsp;</DIV><DIV>//right</DIV><DIV>IMPLEMENT_DYNAMIC<FONT size=2>(</FONT><FONT color=#020002 size=2>CMainFrame</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>CMDIFrameWnd</FONT><FONT size=2>)</FONT><FONT color=#020002 size=2>BEGIN_MESSAGE_MAP</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>CMainFrame</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>CMDIFrameWnd</FONT><FONT size=2>)</DIV></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 23 May 2007 15:03:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7216&amp;PID=23181&amp;title=mdi-childframe-repaint-resize-issue#23181</guid>
  </item> 
  <item>
   <title><![CDATA[MDI ChildFrame Repaint/Resize issue : Hi Oleg and team, I love the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7216&amp;PID=23180&amp;title=mdi-childframe-repaint-resize-issue#23180</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3007">steve_murch</a><br /><strong>Subject:</strong> 7216<br /><strong>Posted:</strong> 23 May 2007 at 2:55pm<br /><br /><P>Hi Oleg and team,</P><P>I love the framework you've built.&nbsp; Samples are generally quite clear, and I really appreciate the extra time you've put into making this accessible.</P><P>I've got a flicker-problem I'm trying to figure out with an MDI application that I'm building using both your RibbonBar and pane framework.&nbsp; This problem doesn't exist in your sample application, so I know its somewhere in my code.&nbsp; But I've gone over, and over and <EM>over</EM> what might be&nbsp;different between my app and your samples, and can't find anything.&nbsp; I'm hoping you can point me to some specific things to look for on the off chance you (or others) have seen this before.&nbsp; (Looked on the forums here too and didn't see anything related to this.)</P><DIV>&nbsp;</DIV><DIV><strong>The problem is that my app paints just fine the upon initial load, but every time I try to resize the MainFrm, in a split second, the ChildFrm window gets painted at 0,0</strong> (where 0,0 is the upper leftmost and topmost pixel of the MainFrm window).&nbsp; Indeed, when I trap the OnSize event of the ChildFrm, even before it gets to the OnSize of that ChildFrm, somehow the active view gets repainted at 0,0.&nbsp; It is then erased and (properly) repainted when I continue.</DIV><DIV>This split-second repaint causes a very annoying flicker in the application when the mainfrm is resized.</DIV><P>I've tried stripping my app down to its bare&nbsp;minimum, making the activeview a simple RichEditView just like the sample, and it has the same problem.&nbsp; I've also tried removing the PaneManager from the code, as well as the skinning of the underlying panes and active view, and the same thing happens.&nbsp;&nbsp;&nbsp; I'm not doing anything in the OnSize event of the MainFrm or the ChildFrm.&nbsp; </P><DIV>Why do you think my active View might be being repainted at 0,0 before its re-painted again in its expected position?&nbsp;&nbsp;(It doesn't happen like this in your samples, particularly RibbonMDISample.)</DIV><DIV>&nbsp;</DIV><DIV>I am using the very latest code -- 11.1.2&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>------</DIV><DIV>In main application .cpp:</DIV><DIV>&nbsp;</DIV><FONT size=2><P></FONT><FONT color=#020002 size=2>CMultiDocTemplate</FONT><FONT size=2>* </FONT><FONT color=#020002 size=2>pDocTemplate</FONT><FONT size=2>;</FONT><FONT color=#020002 size=2>pDocTemplate</FONT><FONT size=2> = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#020002 size=2>CMultiDocTemplate</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>IDR_BigOven_2TYPE</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>RUNTIME_CLASS</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>CBigOven_2Doc</FONT><FONT size=2>), </FONT><FONT color=#020002 size=2>RUNTIME_CLASS</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>CChildFrame</FONT><FONT size=2>), </FONT><FONT color=#020002 size=2>RUNTIME_CLASS</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>CTestView</FONT><FONT size=2>));</P><DIV></DIV><DIV>CTestView is simply a subclassed CRichEditView</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>MainFrm::OnSize DOES NOT exist, nor am I trapping the message</DIV><DIV>CChildFrm::OnSize DOES NOT exist</DIV><DIV>&nbsp;</DIV><DIV></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 23 May 2007 14:55:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7216&amp;PID=23180&amp;title=mdi-childframe-repaint-resize-issue#23180</guid>
  </item> 
 </channel>
</rss>