<?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 : Problem with repaint tab in TabC&#111;ntrol</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Problem with repaint tab in TabC&#111;ntrol]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 12:12:38 +0000</pubDate>
  <lastBuildDate>Wed, 27 Apr 2005 06:59:18 +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=2147</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[Problem with repaint tab in TabC&#111;ntrol : Thanks for your response but I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6402&amp;title=problem-with-repaint-tab-in-tabcontrol#6402</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 2147<br /><strong>Posted:</strong> 27 April 2005 at 6:59am<br /><br />Thanks for your response but I find out problem and resolved it myself(in cooperation with my colleague). Problem was that I have in bothdialogs GroupBox. If we set a Transparent property to these groupboxes,problem was resolved and dialogs are repainted correctly.&nbsp;<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0">]]>
   </description>
   <pubDate>Wed, 27 Apr 2005 06:59:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6402&amp;title=problem-with-repaint-tab-in-tabcontrol#6402</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with repaint tab in TabC&#111;ntrol : You Must Use ON_NOTIFY insterad...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6390&amp;title=problem-with-repaint-tab-in-tabcontrol#6390</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2147<br /><strong>Posted:</strong> 26 April 2005 at 1:30pm<br /><br /><P>You Must Use ON_NOTIFY insterad of ON_MESSAGE</P><P>&nbsp;</P><P>also you can override <FONT size=2>SetSelectedItem:</FONT></P><P><FONT size=2><FONT size=2>void CTest::SetSelectedItem(<FONT size=2>CXTPTabManagerItem* pItem)</FONT></P><P><FONT size=2>{</FONT></P><FONT size=2><FONT size=2><P>&nbsp;&nbsp;&nbsp; <FONT size=2>CXTPTabControl</FONT>::SetSelectedItem(pItem);</P><P>&nbsp;&nbsp; ::Invalidate(<FONT size=2>m_hwndClient);</FONT></FONT><BR>}</P></FONT><P>Also you can attach sample project with problem I will correct it and attach fix.</P></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 26 Apr 2005 13:30:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6390&amp;title=problem-with-repaint-tab-in-tabcontrol#6390</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with repaint tab in TabC&#111;ntrol : Thanks for your reply, but it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6380&amp;title=problem-with-repaint-tab-in-tabcontrol#6380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 2147<br /><strong>Posted:</strong> 26 April 2005 at 3:50am<br /><br />Thanks for your reply, but it doesn't work. I look that TCN_SELCHANGEis used in CXTTabCtrlBaseEx and it isn't possible to use inCXTPTabControl. Even if I try to used it as it's in example in manual,it doesn't work, this function wasn't use (I verify it by breakpointand by tab item changing). <br>I use:<br>//{{AFX_MSG_MAP(CTest)<br>ON_MESSAGE(TCN_XT_SELCHANGE, OnTabSelChange)<br>//}}AFX_MSG_MAP<br><br>LRESULT CTest::OnTabSelChange(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp; CXTPTabControl* pTabCtrl = (CXTPTabControl*)lParam;<br>&nbsp;&nbsp;&nbsp; ASSERT_VALID(pTabCtrl);<br><br>&nbsp;&nbsp;&nbsp; int nID = (int)wParam;<br>&nbsp;&nbsp;&nbsp; if (nID == IDC_ONACCESSTAB)<br>&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; Invalidate(FALSE);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br>In other hand I find out that class CXTPTabManager from which is derived CXTPTabControl contains method <strong>virtual</strong> <strong>void</strong>OnItemClick( CXTPTabManagerItem* pItem). I hope that it's the right method but I'm not sure how to used themby correctly way. It isn't neither message in manual to assign thismethod to message map and neither example in samples. I tried to use itthis way, but it didn't work, method wasn't call by tab item changing:<br>void CTest::OnItemClick(CXTPTabManagerItem* pItem)<br>{<br>&nbsp;&nbsp;&nbsp; Invalidate(FALSE);<br>} <br>Please can you help me? <br>]]>
   </description>
   <pubDate>Tue, 26 Apr 2005 03:50:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6380&amp;title=problem-with-repaint-tab-in-tabcontrol#6380</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with repaint tab in TabC&#111;ntrol : Tab Control send TCN_SELCHANGE...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6372&amp;title=problem-with-repaint-tab-in-tabcontrol#6372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2147<br /><strong>Posted:</strong> 25 April 2005 at 11:19pm<br /><br />Tab Control send TCN_SELCHANGE notification. You can try to redraw your dialogs after them become selected.]]>
   </description>
   <pubDate>Mon, 25 Apr 2005 23:19:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6372&amp;title=problem-with-repaint-tab-in-tabcontrol#6372</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with repaint tab in TabC&#111;ntrol : Hello, I have probably basic problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6345&amp;title=problem-with-repaint-tab-in-tabcontrol#6345</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 2147<br /><strong>Posted:</strong> 22 April 2005 at 7:52am<br /><br />Hello, I have probably basic problem but I don't know how to resolveit. I use CXTPTabControl and in OnInitDialog() function insert 2 tabsinto it and settings tab parameters. Each tab contains different dialogin different class as it's content. Problem is that when I switch inresult program between particular tabs, it doesn't work correctly theirrepainting. In new tab stay content of previous tab, but when I dragover this window some other application, it's their content repaint andcontent is correctly already. I try to look to similar examples asTabManager or Toolbox but I can't find out which control is necessaryto use to invoke repainting content of dialog when the select tab ischanged (if it's necessary to do in class which contains cxtptabcontroland classes of dialogs or in each dialog class). Can you help me,please ? Thanks<br><br>Example of inicialization of CXTPTabControl content:<br>BOOL CTest::OnInitDialog() &nbsp; <br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPTabPaintManager* mgr = m_TabCtrl.GetPaintManager();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  //style settings<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mgr-&gt;SetAppearance(xtpTabAppearancePropertyPage2003);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mgr-&gt;m_bBoldSelected = true;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mgr-&gt;m_bOneNoteColors = true;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  m_TabCtrl.ModifyStyle(0,&nbsp;&nbsp;&nbsp;WS_VISIBLE|WS_ CHILD|SS_NOTIFY|WS_CLIPCHILDREN|WS_CLIPSIBLINGS); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  //image list settings<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  CImageList m_ilTabCtrl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_ilTabCtrl.Create(16,16, ILC_COLOR32|ILC_MASK, 0, 2);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_ilTabCtrl.Add(AfxGetApp()-&gt;LoadIcon(IDI_AVSTATISTICS));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_ilTabCtrl.Add(AfxGetApp()-&gt;LoadIcon(IDI_AVASOPTIONS));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_TabCtrl.SetImageList(&amp;m_ilTabCtrl);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  //inserting particular class to tab control<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  CString res_str = _T("");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  int nTab = m_TabCtrl.GetItemCount();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res_str.LoadString(IDS_NAME_STATISTICS);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pASStatistics.Create(CStatistics::IDD, &amp;m_TabCtrl);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_TabCtrl.InsertItem(nTab, res_str, m_pASStatistics, 0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nTab++;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  res_str = _T("");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res_str.LoadString(IDS_NAME_OPTIONS);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pASSOptions.Create(COptions::IDD, &amp;m_TabCtrl);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_TabCtrl.InsertItem(nTab, res_str, m_pASSOptions, 1);<br><br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  m_TabCtrl.ShowIcons(TRUE);<br><br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  return TRUE;<br>}<br>]]>
   </description>
   <pubDate>Fri, 22 Apr 2005 07:52:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2147&amp;PID=6345&amp;title=problem-with-repaint-tab-in-tabcontrol#6345</guid>
  </item> 
 </channel>
</rss>