<?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 : MDIPanes - Flashing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : MDIPanes - Flashing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 20:52:24 +0000</pubDate>
  <lastBuildDate>Sat, 03 Jan 2004 02:13:32 +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=299</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[MDIPanes - Flashing : Filling the client rectangle in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=299&amp;PID=726&amp;title=mdipanes-flashing#726</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 299<br /><strong>Posted:</strong> 03 January 2004 at 2:13am<br /><br /><P>Filling the client rectangle in WM_ERASEBKGND hadler not effective. </P><P>If you want black background try this:</P><FONT color=#a000a0><P>&nbsp;</P><P>BEGIN_MESSAGE_MAP</FONT>(<FONT color=#0000ff>CMDIPanesView</FONT>, <FONT color=#0000ff>CView</FONT>)</P><P><strong><FONT color=#a000a0>ON_WM_ERASEBKGND</FONT>()</strong></P><P><strong><FONT color=#a000a0>ON_WM_PAINT</FONT>()</strong></P><P><FONT color=#a000a0>END_MESSAGE_MAP</FONT>()</P><P>&nbsp;</P><FONT color=#0000ff><P>BOOL</FONT> <FONT color=#0000ff>CMDIPanesView</FONT>::<FONT color=#880000>OnEraseBkgnd</FONT>(<FONT color=#0000ff>CDC</FONT>* <FONT color=#808080>pDC</FONT>) </P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#0000ff>return</FONT> <FONT color=#a000a0>TRUE</FONT>;</P></BLOCKQUOTE><P>}</P><FONT color=#0000ff><P>void</FONT> <FONT color=#0000ff>CMDIPanesView</FONT>::<FONT color=#880000>OnPaint</FONT>() </P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#0000ff>CPaintDC</FONT> <FONT color=#880000>dc</FONT>(<FONT color=#0000ff>this</FONT>); <FONT color=#009900>// device context for painting</P></FONT><P></P><P><FONT color=#808080>dc</FONT>.<FONT color=#880000>FillSolidRect</FONT>(<FONT color=#0000ff>CXTPClientRect</FONT>(<FONT color=#0000ff>this</FONT>), 0);</P></BLOCKQUOTE><P>}</P>]]>
   </description>
   <pubDate>Sat, 03 Jan 2004 02:13:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=299&amp;PID=726&amp;title=mdipanes-flashing#726</guid>
  </item> 
  <item>
   <title><![CDATA[MDIPanes - Flashing : Oleg,  Thank you for the reply....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=299&amp;PID=699&amp;title=mdipanes-flashing#699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=276">ardoin</a><br /><strong>Subject:</strong> 299<br /><strong>Posted:</strong> 26 December 2003 at 9:58am<br /><br /><P>Oleg,</P><P>&nbsp;</P><P>Thank you for the reply. Unfortunately, this problem is occuring in your own sample, which already&nbsp;contains the above code.</P><P>Take the&nbsp;unmodified MDI Frames sample, and add the following handler in the CMDIPanesView class:</P><P>BOOL CMDIPanesView::OnEraseBkgnd(CDC* pDC)<BR>{<BR>CRect Client;<BR>CBrush BlackBrush(RGB(0,0,0));<BR>&nbsp; &nbsp;Sleep(250); //&nbsp;Sleep so we can see the bug easily.<BR>&nbsp;&nbsp;&nbsp;GetClientRect(Client);<BR>&nbsp; &nbsp;pDC-&gt;FillRect(Client, &amp;BlackBrush); // fill with black<BR>&nbsp;&nbsp;&nbsp;return TRUE;<BR>}<BR></P><P>Start the sample. The properties pane is showing on the left. Drag that pane to the bottom of the child window so it docks there. Click the "Auto Hide" pushpin button.&nbsp;The pane&nbsp;closes.</P><P>Now, hover over the properties tab on the bottom of the child window. The properties pane pops up without any problem. Move the mouse away&nbsp;so&nbsp;the pane&nbsp;returns to a docked state.</P><P>- this is where the bug occurs ---&gt; Hover the mouse&nbsp;over the properties tab a second time. You should see the frame drawn erraneously on the top part of the child window for about 1/4 second (from the Sleep() call above). It is then erased by the EraseBkgnd FillRect() call. Subsequent opening of the properties tab repeats the bug every time. I have no idea why it seems to work the first time and fail every other time.</P><P>It is important to note that the OnEraseBkgnd handler above only accentuates the problem -- the bug is there in the unmodified program, it is just harder to see. I believe it's often hidden by the monitor refresh (or lack thereof) although playing with the refresh rate and different resolutions didn't really have much effect.</P><P>Also, it seems to occur no matter which side of the child window you dock the panel to. It is easiest to see when docked at the bottom, but is also quite visible when docked on the left or right side.</P><P>Another thing I should mention is that when the pane area gets bigger, the problem is more noticeable, as one would expect since it is drawing a bigger rectangle.</P><P>Try it and let me know what you think.</P><P>Thanks very much,</P><P>&nbsp;</P><P>Tim Ardoin</P><P>Developer, Regal Decision Systems, Inc.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 26 Dec 2003 09:58:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=299&amp;PID=699&amp;title=mdipanes-flashing#699</guid>
  </item> 
  <item>
   <title><![CDATA[MDIPanes - Flashing : Try to add this in yourCChildFrame. BOOL...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=299&amp;PID=694&amp;title=mdipanes-flashing#694</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 299<br /><strong>Posted:</strong> 25 December 2003 at 12:44am<br /><br /><P>Try to add this in yourCChildFrame.</P><P>BOOL CChildFrame::PreCreateWindow(CREATESTRUCT&amp; cs)<BR>{<BR>&nbsp;// TODO: Modify the Window class or styles here by modifying<BR>&nbsp;//&nbsp; the CREATESTRUCT cs</P><P>&nbsp;if( !CMDIChildWnd::PreCreateWindow(cs) )<BR>&nbsp;&nbsp;return FALSE;</P><P>&nbsp;cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;</P><P>&nbsp;return TRUE;<BR>}</P>]]>
   </description>
   <pubDate>Thu, 25 Dec 2003 00:44:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=299&amp;PID=694&amp;title=mdipanes-flashing#694</guid>
  </item> 
  <item>
   <title><![CDATA[MDIPanes - Flashing : Hi there, We&amp;#039;ve been debugging...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=299&amp;PID=677&amp;title=mdipanes-flashing#677</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=276">ardoin</a><br /><strong>Subject:</strong> 299<br /><strong>Posted:</strong> 15 December 2003 at 4:52pm<br /><br /><P>Hi there,</P><P>We've been debugging a&nbsp;graphics glitch&nbsp;in our app. When we hover the mouse over a tab on the bottom of the MDI Child window, there is a flash on the top of the window right before the pane starts to "expand".</P><P>After we thoroughly checked our own code,&nbsp;we had a look at the MDIPanes sample program. To&nbsp;our surprise, it does the same thing. It is much less noticeable as it is a light-colored flash on a white background, but it is there. Our App uses a black background and a larger pane, causing this to be a pretty bright, very noticeable flash.</P><P>I've enclosed a screenshot of this&nbsp;problem (from the MDIPanes sample)&nbsp;that I was able to take by doing nothing for the WM_ERASEBKGND messages (after a few initial fills to black) in CMDIPanesView, and hovering the mouse over the "properties" tab. It seems to happen every time, although in real time I believe the monitor refresh behavior frequently hides it.</P><P>Is there something we can do to fix this&nbsp;on this end,&nbsp;or is this something you will have to do?</P><P>We are using XTSuite 8.6 (problem exists on 8510 as well), and Visual Studio 2003. The problem is the same on both W2K and XP.</P><P>Here's the Screenshot, it will probably explain what I'm talking about better than I have ;)</P><P>Thanks for your help!</P><P>&nbsp;</P><P>Tim Ardoin</P><P><IMG alt="flash problem" src="http://mywebpages.comcast.net/ardoin/flashproblem.jpg" border="0"></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 15 Dec 2003 16:52:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=299&amp;PID=677&amp;title=mdipanes-flashing#677</guid>
  </item> 
 </channel>
</rss>