<?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 : SetActiveView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : SetActiveView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Apr 2026 15:33:00 +0000</pubDate>
  <lastBuildDate>Wed, 23 Sep 2009 15:57:13 +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=15234</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[SetActiveView : I&amp;#039;m using your CXTPMDIFrameWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15234&amp;PID=53397&amp;title=setactiveview#53397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3776">gmail</a><br /><strong>Subject:</strong> 15234<br /><strong>Posted:</strong> 23 September 2009 at 3:57pm<br /><br />I'm using your CXTPMDIFrameWnd derived CMainFrame class with multiple views in my application. If I open 4 different views and I wan't to set e.g. second view active I can't. Here's the snippet:<br><br>POSITION pos=NULL;<br>pos=pApp-&gt;pIzvTemplate-&gt;GetFirstDocPosition(); <br>pDoc=pApp-&gt;pIzvTemplate-&gt;GetNextDoc(pos); <br>pos=pDoc-&gt;GetFirstViewPosition();&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>CView *pView=pDoc-&gt;GetNextView(pos);<br>if(pView){<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ((CMainFrame*)AfxGetMainWnd())-&gt;SetActiveView(pView,TRUE);<br>}<br><br>Not only it doesn't changes the active view, after exit it crashes (but that's irrelevant for this situation, I'll try to fix it later). And if I call GetActiveView() after SetActiveView() it returns the correct one - but it's not shown. I'm using XTP 12.1. So, how can we switch between views?<br>]]>
   </description>
   <pubDate>Wed, 23 Sep 2009 15:57:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15234&amp;PID=53397&amp;title=setactiveview#53397</guid>
  </item> 
 </channel>
</rss>