<?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 : CXTTabCtrl and CXTResize&#070;ormView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTTabCtrl and CXTResize&#070;ormView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 17:11:41 +0000</pubDate>
  <lastBuildDate>Mon, 11 Jul 2005 06:49:56 +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=2549</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[CXTTabCtrl and CXTResize&#070;ormView : And to answer one of my questions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2549&amp;PID=7622&amp;title=cxttabctrl-and-cxtresizeformview#7622</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2549<br /><strong>Posted:</strong> 11 July 2005 at 6:49am<br /><br /><P>And to answer one of my questions myself (I asked it too soon, because I didn;t test it myself yet): <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></P><P>You can use this code to access the members of the formview:</P><P><table width="99%"><tr><td><pre class="BBcode">CMyFormView *pView = (CMyFormView*)m_Tab.GetView(RUNTIME_CLASS(CMyFormView));</pre></td></tr></table></P><P>pView now holds a pointer to all the available members in the CMyFormView class.</P><P>Hope this is helpful to anyone.</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 11 Jul 2005 06:49:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2549&amp;PID=7622&amp;title=cxttabctrl-and-cxtresizeformview#7622</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTabCtrl and CXTResize&#070;ormView : I somehow don&amp;#039;t have the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2549&amp;PID=7618&amp;title=cxttabctrl-and-cxtresizeformview#7618</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2549<br /><strong>Posted:</strong> 11 July 2005 at 4:46am<br /><br /><P>I somehow don't have the paint problem anymore when using the code outlined above. So hopefully this one is solved.</P><P>The other problems remain unfortunately.... (I am particularly interested in answers to these questions):</P><P>1. How can I somehow let the Visual Studio know that CXTResizeFormView is in fact derived from CFormView so I can use the normal dialog handling? Now I have to first change all references to CXTResizeFormView back to CFormView before I can edit the variables.</P><P>2. When I add a formview to my tabcontrol the dialog is created "sunken" which makes a rather terrible effect. How do I get rid of that "sunken" effect so the formview appears more as a part of the tabcontrol (and as a normal tab)?</P><P>Any help is greatly appreciated.</P><P>Thanks,<BR>Martin</P>]]>
   </description>
   <pubDate>Mon, 11 Jul 2005 04:46:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2549&amp;PID=7618&amp;title=cxttabctrl-and-cxtresizeformview#7618</guid>
  </item> 
  <item>
   <title><![CDATA[CXTTabCtrl and CXTResize&#070;ormView : Hello, I have a couple of problems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2549&amp;PID=7569&amp;title=cxttabctrl-and-cxtresizeformview#7569</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1139">Martin</a><br /><strong>Subject:</strong> 2549<br /><strong>Posted:</strong> 08 July 2005 at 5:31am<br /><br /><P><FONT size=1>Hello,</FONT></P><P><FONT size=1>I have a couple of problems and general questions:</FONT></P><P><FONT size=1>1. When creating tabs with the CXTTabCtrl and using the method AddView with&nbsp;CXTResizeFormView&nbsp;the last added tab is also the active tab. I want to make the first tab the active tab. </FONT></P><P><FONT size=1>I tried this but it has a painting problem in my formview:</FONT></P><FONT size=1><P><table width="99%"><tr><td><pre class="BBcode">CWnd *pView = m_Tab.GetView(RUNTIME_CLASS(MyFormView));<BR></FONT><FONT color=#0000ff size=1>if</FONT><FONT size=1> (pView){<BR>m_Tab.ActivateView(pView);<BR>m_Tab.SetCurSel(0); // Needed because somehow ActivateView doesn't change the tab index</FONT><FONT size=1></P><P>::SetWindowPos(m_Tab.m_hWnd, NULL, 0,0,0,0, SWP_NOMOVE|SWP_NOSIZE|SWP_FRAMECHANGED);<BR>m_Tab.Invalidate(FALSE);</P><P>}</pre></td></tr></table></P><P>Q: How can I set the first tab as active one AND make sure the tab gets painted correctly?</P><P>2. When I create a new dialog based on CFormView I can edit the properties of my dialogs, e.g. create a variable for a textbox of the type CEdit. When I subclass the dialog to use CXTResizeFormView instead of CFormView I cannot do this anymore.</P><P>Q: How can I somehow let the VIsual Studio know that CXTResizeFormView is in fact derived from CFormView so I can use the normal dialog handling? Now I have to first change all references to CXTResizeFormView back to CFormView before I can edit the variables.</P><P>Now some general questions:</P><P>1. Can I also use the method as outlined above to get a pointer to a view in the tabcontrol to access member variables and functions if I typecast them to my own formview class?</P><P>2. When I add a formview to my tabcontrol the dialog is created "sunken" which makes a rather terrible effect. How do I get rid of that "sunken" effect so the formview appears more as a part of the tabcontrol?</P><P>T.I.A,</P><P>Martin</P></FONT><span style="font-size:10px"><br /><br />Edited by Martin</span>]]>
   </description>
   <pubDate>Fri, 08 Jul 2005 05:31:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2549&amp;PID=7569&amp;title=cxttabctrl-and-cxtresizeformview#7569</guid>
  </item> 
 </channel>
</rss>