<?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 : CXTPTabControl Handler</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPTabControl Handler]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 22:49:50 +0000</pubDate>
  <lastBuildDate>Wed, 06 Jul 2011 03:38:03 +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=18612</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[CXTPTabControl Handler : Got it....afx_msg void OnSelectedChanged(NMHDR*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18612&amp;PID=65128&amp;title=cxtptabcontrol-handler#65128</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2903">KumarCJ</a><br /><strong>Subject:</strong> 18612<br /><strong>Posted:</strong> 06 July 2011 at 3:38am<br /><br />Got it....<br><br>afx_msg void OnSelectedChanged(NMHDR* pNMHDR, LRESULT* pResult);<br><br>ON_NOTIFY(TCN_SELCHANGE, IDC_TABCONTROL, OnSelectedChanged)<br><br>void MyClass::OnSelectedChanged(NMHDR* pNMHDR, LRESULT* pResult)<br>{<br>&nbsp;&nbsp;&nbsp; UNUSED_ALWAYS(pNMHDR);<br>&nbsp;&nbsp;&nbsp; *pResult = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ...................<br>&nbsp;&nbsp;&nbsp; ...................<br>&nbsp;&nbsp;&nbsp; ...................<br><br>}// End of OnSelectedChanged(..)<br><br><br>]]>
   </description>
   <pubDate>Wed, 06 Jul 2011 03:38:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18612&amp;PID=65128&amp;title=cxtptabcontrol-handler#65128</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPTabControl Handler : Hi,We are using CXTPTabControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18612&amp;PID=65103&amp;title=cxtptabcontrol-handler#65103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2903">KumarCJ</a><br /><strong>Subject:</strong> 18612<br /><strong>Posted:</strong> 04 July 2011 at 7:53am<br /><br />Hi,<br><br>We are using CXTPTabControl class for displaying the tab in 2nd pane of splitter window.<br><br>which handler we should use to catch click on Tab?<br><br>Currently we are using "SetSelectedItem(..)" but the issue with this is that when we select all the tab 1st time the controls come to "SetSelectedItem(..)" BUT when we try to select tabs 2nd time the control does not come to "SetSelectedItem(..)" so we are unable to handle the things for 2nd time click on tab.<br><br>The code we are using as below<br>void ABC::SetSelectedItem(CXTPTabManagerItem* pItem)<br>{<br>&nbsp;&nbsp; HWND hWnd = pItem-&gt;GetHandle();<br>&nbsp;&nbsp;&nbsp; CView * pView = (CView*)CWnd::FromHandlePermanent(hWnd);<br>&nbsp;&nbsp; if (pView-&gt;IsKindOf(RUNTIME_CLASS(CMyView)))<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetParentFrame()-&gt;SetActiveView((CView *)pView);<br>&nbsp;&nbsp; }<br>&nbsp;&nbsp; <br>&nbsp; CXTPTabControl::SetSelectedItem(pItem);<br>}<br><br>Please let us know which handler we should use, so that program control will come to handler for each click on tab, <br><br>Thanks,<br>Saket.<br>]]>
   </description>
   <pubDate>Mon, 04 Jul 2011 07:53:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18612&amp;PID=65103&amp;title=cxtptabcontrol-handler#65103</guid>
  </item> 
 </channel>
</rss>