<?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 : OpenGL Tabbed MDI Windows on Vista Aero problems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : OpenGL Tabbed MDI Windows on Vista Aero problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 22:33:03 +0000</pubDate>
  <lastBuildDate>Mon, 16 Jun 2014 11:53:06 +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=6997</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[OpenGL Tabbed MDI Windows on Vista Aero problems : Hello all,I am having the same...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=72539&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#72539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8722">jakka30</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 16 June 2014 at 11:53am<br /><br />Hello all,<div><br></div><div>I am having the same problem. With Windows Aero turned-ON and floating my docking window, whenever I go to other application window (making my docking window go out of focus) then my docking window draws white background (this is not my docking window background color). It is really frustrating.&nbsp;</div><div><br></div><div>Any help on this will be greatly appreciated.</div><div><br></div><div>Thank you,</div><div>Suresh</div>]]>
   </description>
   <pubDate>Mon, 16 Jun 2014 11:53:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=72539&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#72539</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems : I&amp;#039;m running into a similar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=70944&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#70944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8070">MarkcusD2</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 14 May 2013 at 3:10pm<br /><br />I'm running into a similar issue where the opengl view goes all white whenever the I click in a docked window or I&nbsp;re-size&nbsp;the entire application. I tried the changes above but they didn't have any effect in my program. I'm using a FrameWnd and Multiple docked windows. For Windows 7 I &nbsp;just disable the dwm when my app starts but MS has taken away that ability in Win8 :(<div><br></div><div>Has this been fixed in later versions of the toolkit?</div>]]>
   </description>
   <pubDate>Tue, 14 May 2013 15:10:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=70944&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#70944</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems : Some of the code changes included...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=46822&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#46822</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2432">scottp</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 18 March 2009 at 3:07am<br /><br />Some of the code changes included in the above post seem to have made there way into 13.0.0, but most of the <font face="Courier New, Courier, mono">CXTPTabClientWnd</font>&nbsp;&nbsp; changes have not.&nbsp; There are also some other opengl drawing problems when switching the active tab, I have not been able to pinpoint the problem code yet.<br><br>It would be nice to have these changes included so I can stop having to manually patch each new release.<br><br>]]>
   </description>
   <pubDate>Wed, 18 Mar 2009 03:07:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=46822&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#46822</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems : Any news regarding this? I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=46619&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#46619</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 13 March 2009 at 7:41am<br /><br />Any news regarding this? I'm experiencing similar OpenGL-problems with XTP 13.0.0, and I'm not sure if it has to do with this or not.]]>
   </description>
   <pubDate>Fri, 13 Mar 2009 07:41:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=46619&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#46619</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems : I too am seeing this with a simple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=46148&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#46148</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4465">Slamma</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 02 March 2009 at 7:32pm<br /><br />I too am seeing this with a simple opengl viewport in the main MDI document area.<br>]]>
   </description>
   <pubDate>Mon, 02 Mar 2009 19:32:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=46148&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#46148</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems :   I think I have found the cause...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=28685&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#28685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2432">scottp</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 20 November 2007 at 9:18pm<br /><br /><font face="Arial, Helvetica, sans-serif">I think I have found the cause of the major part of the problem.<br>Itappears that when using Vista Aero (Desktop Windows Compositingenabled) it will be fooled into taking a dirty copy of the currentwindow for composting after processing the WM_NCPAINT (orWM_PAINT)&nbsp;messages when no clipping regions are set to exclude the client&nbsp;(opengl) regions.<br><br>So setting the DC clipping regions correctly usingdcPaint.ExcludeClipRect in&nbsp;CXTPDockingPaneMiniWnd::OnNcPaint() ,CXTPTabClientWnd::OnDraw and CXTPTabClientWnd::OnNcPaint() to excludethe client area of the window (i.e. the OpenGL content) appears to work.<br><br>The following usage patterns show the redraw problems:<br>1. loadseveral of the opengl Views, resize the application in and out severaltimes (I guess show contents while dragging option should be on). Theresizing will cause the opengl contents to flicker.<br>2. click on thevarious tabs to activate the other MDI opengl views, changing theactive view will also cause a "flicker" as a dirty backing window isshown.<br>3. make one of the opengl views "dockable" and float thedocked pane. Anytime the the themed floating frame is drawn the openglcontents are cleared (deactivate, mouse over close buttons)<br><br>1. it appears is mostly fixed by CXTPTabClientWnd::OnDraw and CXTPTabClientWnd::OnNcPaint() changes<br>2. is still a problem (I think this is the same case as Grundy)<br>3. appears totally fixed by CXTPDockingPaneMiniWnd::OnNcPaint changes<br><br><br>Here are the changes that work for me - it would be nice if these could be included in the next release - hopefully this will be useful for other users too.<br></font><br><font face="Courier New, Courier, mono">void CXTPTabClientWnd::OnDraw(CDC* pDC, CRect rc)<br>&nbsp;{<br>&nbsp;if (GetWorkspaceCount() == 0 || !m_bEnableGroups)<br>&nbsp;&nbsp;{<br>&nbsp;&nbsp;OnFillBackground(pDC, rc);<br>&nbsp;&nbsp;}<br>&nbsp;else<br>&nbsp;&nbsp;{<br>&nbsp;&nbsp;CRect rcClipBox;<br>&nbsp;&nbsp;pDC-&gt;GetClipBox(&amp;rcClipBox);<br><br>&nbsp;&nbsp;for (int i = GetWorkspaceCount() - 1; i &gt;= 0; i--)<br>&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;CWorkspace* pWorkspace = GetWorkspace(i);<br>&nbsp;&nbsp;&nbsp;CRect rectClient = pWorkspace-&gt;GetClientRect();<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;CRect rectWindow;<br>&nbsp;&nbsp;&nbsp;GetWindowRect(rectWindow);<br>&nbsp;&nbsp;&nbsp;ScreenToClient(rectWindow);<br>&nbsp;&nbsp;&nbsp;rectClient.OffsetRect(-rectWindow.left, -rectWindow.top);<br><br>&nbsp;&nbsp;&nbsp;pDC-&gt;ExcludeClipRect(rectClient);<br><br>&nbsp;&nbsp;&nbsp;}<br><br>&nbsp;&nbsp;for (int i = GetWorkspaceCount() - 1; i &gt;= 0; i--)<br>&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;CWorkspace* pWorkspace = GetWorkspace(i);<br><br>&nbsp;&nbsp;&nbsp;if (CRect().IntersectRect(rcClipBox, pWorkspace-&gt;m_rcControl))<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;GetPaintManager()-&gt;DrawTabControl(GetWorkspace(i), pDC, pWorkspace-&gt;m_rcControl);<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br><br>&nbsp;&nbsp;&nbsp;if (!pWorkspace-&gt;m_rcSplitter.IsRectEmpty())<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;m_pPaintManager-&gt;GetAppearanceSet()-&gt;DrawWorkspacePart(pDC,pWorkspace-&gt;m_rcSplitter, m_bHorizSplitting ?xtpTabWorkspacePartHSplitter : xtpTabWorkspacePartVSplitter);<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;}<br>&nbsp;}<br><br><br>void CXTPTabClientWnd::OnNcPaint()<br>&nbsp;{<br>&nbsp;if (!m_bEnableGroups)<br>&nbsp;&nbsp;{<br>&nbsp;&nbsp;Default();<br>&nbsp;&nbsp;return;<br>&nbsp;&nbsp;}<br><br>&nbsp;CWindowDC dcPaint(this);<br>&nbsp;CXTPWindowRect rc(this);<br>&nbsp;rc.OffsetRect(rc.TopLeft());<br><br>&nbsp;CRect rectClient;<br>&nbsp;GetClientRect(rectClient);<br>&nbsp;CRect rectWindow;<br>&nbsp;GetWindowRect(rectWindow);<br>&nbsp;ScreenToClient(rectWindow);<br>&nbsp;rectClient.OffsetRect(-rectWindow.left, -rectWindow.top);<br>&nbsp;dcPaint.ExcludeClipRect(rectClient);<br><br>&nbsp;m_pPaintManager-&gt;GetAppearanceSet()-&gt;DrawWorkspacePart(&amp;dcPaint, rc, xtpTabWorkspacePartBorder);<br>&nbsp;}<br><br>void CXTPDockingPaneMiniWnd::OnNcPaint()<br>{<br>	if (IsThemed())<br>	{<br>		CXTPWindowRect rc(this);<br>		rc.OffsetRect(-rc.TopLeft());<br>		CWindowDC dc(this);<br><br>&nbsp;&nbsp;CRect rectClient;<br>&nbsp;&nbsp;GetClientRect(rectClient);<br>&nbsp;&nbsp;CRect rectWindow;<br>&nbsp;&nbsp;GetWindowRect(rectWindow);<br>&nbsp;&nbsp;ScreenToClient(rectWindow);<br>&nbsp;&nbsp;rectClient.OffsetRect(-rectWindow.left, -rectWindow.top);<br>&nbsp;&nbsp;dc.ExcludeClipRect(rectClient);<br><br>		CXTPDockingPanePaintManager* pPaintManager = GetPaintManager();<br>		pPaintManager-&gt;DrawFloatingFrame(dc, this, rc);<br>	}<br>	else<br>	{<br>		Default();<br>	}<br>}<br><br><font face="Arial, Helvetica, sans-serif">As mentioned above this does not complete resolve the case when switching between tabs - the flicker to the dirty backwindow is still evident. Unfortunately I don't have any time to continue debugging this.<br><br>Regards,<br><br>Scott<br></font></font>]]>
   </description>
   <pubDate>Tue, 20 Nov 2007 21:18:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=28685&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#28685</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems : Hi grundy,Unfortunately I have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=24518&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#24518</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2432">scottp</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 17 July 2007 at 11:17pm<br /><br />Hi grundy,<br><br>Unfortunately I have not had any success in solving this problem.<br><br>Our application has no GDI mixed with OpenGL, and I have also tested on both Nvidia and ATI graphics and both cards show the problem.<br><br>Have you tested with the sample app I attached in my first post? the sample is about as basic as it can get to show the problem (and should be no GDI either).<br><br>What I have found is that the problem is found in more places than just MDI Tabs. If you reparent an OpenGL View to a floating dockable window, when mousing over the pin and close buttons the code to draw the buttons causes the same problem. In fact, when this happens the OpenGL is not redrawn correctly because there is no resize or paint events to force the redraw.<br><br>It appears to be a problem drawing the window/tab "non client" decorations that is causing the problem (i.e. the pin, close buttons, the tabs etc).<br><br>I am not sure if there is a better way for codejock to draw these non client decorations? or if there is a way to stop the Vista DWM composition from being triggered at the wrong time?<br><br><br>Cheers,<br><br>Scott<br><br>]]>
   </description>
   <pubDate>Tue, 17 Jul 2007 23:17:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=24518&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#24518</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems : Scottp and Oleg, We are seeing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=24512&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#24512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=813">grudy</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 17 July 2007 at 10:58am<br /><br /><P>Scottp and Oleg,</P><P>We are seeing exactly the same issue when switching tabs with our OpenGL application. The "trash" appears as soon as the tab is picked and is replaced by the correct image as soon as the OpenGL draw is finished and we swap buffers - the longer the daw, the longer the "trash" is on the screen. nVidia support thinks we have GDI code in the draw path (you cannot mix GDI and OpenGL in Vista) but we have not found it yet. Have either of you found a resolution to this yet. We are not grouping tabs and already set it to FALSE - so I presume that is why we never saw it with OnSize only with switching tabs.</P><P>Thanks</P><P>grudy</P>]]>
   </description>
   <pubDate>Tue, 17 Jul 2007 10:58:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=24512&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#24512</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems : Hi Oleg,I have tested this change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=22534&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#22534</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2432">scottp</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 03 May 2007 at 9:01pm<br /><br />Hi Oleg,<br><br>I have tested this change you suggested. Resizing the window does not show the flicker any more. But there is now the same flicker when toggling between 2 tabs ( to see it you need to have resized the window first).<br><br>The best way to see these problems is to first resize the window from the bottom right towards the top left and then resize out again.<br><br>I do notice a difference in CXTPTabClientWnd::CalcWindowRect between the single workspace and the group workspaces - could it be a problem here?<br><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 03 May 2007 21:01:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=22534&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#22534</guid>
  </item> 
  <item>
   <title><![CDATA[OpenGL Tabbed MDI Windows on Vista Aero problems : Hi,  Please try to change sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=22522&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#22522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6997<br /><strong>Posted:</strong> 03 May 2007 at 5:23am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Please try to change sample as I suggested - </DIV><DIV>&nbsp;</DIV><DIV>VERIFY(m_MTIClientWnd.Attach(this, <strong>FALSE</strong>));</DIV>]]>
   </description>
   <pubDate>Thu, 03 May 2007 05:23:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6997&amp;PID=22522&amp;title=opengl-tabbed-mdi-windows-on-vista-aero-problems#22522</guid>
  </item> 
 </channel>
</rss>