<?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 : Bad flicker with mouse move in CXTPSkinObjectTab</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Bad flicker with mouse move in CXTPSkinObjectTab]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 10:40:13 +0000</pubDate>
  <lastBuildDate>Mon, 16 Jul 2007 18:59:41 +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=7607</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[Bad flicker with mouse move in CXTPSkinObjectTab : Hi  thanks, that fixed it!  Regards  Adrien...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7607&amp;PID=24502&amp;title=bad-flicker-with-mouse-move-in-cxtpskinobjecttab#24502</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 7607<br /><strong>Posted:</strong> 16 July 2007 at 6:59pm<br /><br />Hi<DIV>&nbsp;</DIV><DIV>thanks, that fixed it!</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>&nbsp;</DIV><DIV>Adrien</DIV>]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 18:59:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7607&amp;PID=24502&amp;title=bad-flicker-with-mouse-move-in-cxtpskinobjecttab#24502</guid>
  </item> 
  <item>
   <title><![CDATA[Bad flicker with mouse move in CXTPSkinObjectTab : Hello,  You&amp;#039;re right, please...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7607&amp;PID=24498&amp;title=bad-flicker-with-mouse-move-in-cxtpskinobjecttab#24498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7607<br /><strong>Posted:</strong> 16 July 2007 at 1:44pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>You're right, please change this line to &nbsp;&nbsp;</DIV><DIV>InvalidateRect(GetHeaderRect(), FALSE);<BR></DIV><DIV>and build library. </DIV><DIV>Please, let me know if it fixed some flickers for you.</DIV>]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 13:44:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7607&amp;PID=24498&amp;title=bad-flicker-with-mouse-move-in-cxtpskinobjecttab#24498</guid>
  </item> 
  <item>
   <title><![CDATA[Bad flicker with mouse move in CXTPSkinObjectTab : Hi  I&amp;#039;m trying to track...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7607&amp;PID=24493&amp;title=bad-flicker-with-mouse-move-in-cxtpskinobjecttab#24493</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 7607<br /><strong>Posted:</strong> 16 July 2007 at 12:14pm<br /><br />Hi<DIV>&nbsp;</DIV><DIV>I'm trying to track down a flicker problem with tab controls using skins.&nbsp; the problem is this code in XTPSkinObjectTab.cpp</DIV><DIV>&nbsp;</DIV><DIV>void CXTPSkinObjectTab::OnMouseMove(UINT /*nFlags*/, CPoint point)<BR>{<BR>&nbsp;int nHotItem = -1;<BR>&nbsp;CTabCtrl* pTabCtrl = (CTabCtrl*)this;</DIV><DIV>&nbsp;for (int iItem = 0; iItem &lt; pTabCtrl-&gt;GetItemCount(); ++iItem)<BR>&nbsp;{<BR>&nbsp;&nbsp;CRect rcItem;<BR>&nbsp;&nbsp;pTabCtrl-&gt;GetItemRect(iItem, &amp;rcItem);<BR>&nbsp;&nbsp;if (rcItem.PtInRect(point))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;nHotItem = iItem;<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;}<BR>&nbsp;}</DIV><DIV>&nbsp;if (nHotItem != m_nHotItem)<BR>&nbsp;{<BR>&nbsp;&nbsp;m_nHotItem = nHotItem;<BR>&nbsp;&nbsp;Invalidate(FALSE);</DIV><DIV>&nbsp;&nbsp;if (m_nHotItem != -1)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;TRACKMOUSEEVENT tme = {sizeof(TRACKMOUSEEVENT), TME_LEAVE, m_hWnd, HOVER_DEFAULT};<BR>&nbsp;&nbsp;&nbsp;_TrackMouseEvent(&amp;tme);<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}<BR></DIV><DIV>the call to Invalidate redraws the whole tab, so when you mouse over the tab items at the top, the whole tab redraws twice whenever you move from hovering over one tab item to another even though you didn't click the mouse.</DIV><DIV>&nbsp;</DIV><DIV>the call to Invalidate should be a call to InvalidateRect, and should include a rect specifying the update region of the tab items affected (the 2 changing state), not the entire control.</DIV><DIV>&nbsp;</DIV><DIV>Adrien</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 12:14:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7607&amp;PID=24493&amp;title=bad-flicker-with-mouse-move-in-cxtpskinobjecttab#24493</guid>
  </item> 
 </channel>
</rss>