<?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 : Managing Panes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Managing Panes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 23:50:41 +0000</pubDate>
  <lastBuildDate>Thu, 22 Dec 2005 05:29:14 +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=3422</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[Managing Panes : Hi Oleg....thank you so much helping...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10305&amp;title=managing-panes#10305</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1631">almatesic</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 22 December 2005 at 5:29am<br /><br /><P>Hi Oleg....thank you so much helping me through this. Everything seems to be working out just fine. I was wondering what resorces are good to look into to learn and understand the language at your level?</P><P>Thanks again!</P><P>Al&nbsp; </P>]]>
   </description>
   <pubDate>Thu, 22 Dec 2005 05:29:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10305&amp;title=managing-panes#10305</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : Hi, Right... Instead IDI_accounts_Accounts...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10300&amp;title=managing-panes#10300</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 22 December 2005 at 12:21am<br /><br /><P>Hi,</P><P>Right... Instead <FONT size=2>IDI_accounts_Accounts use 0, 1, ...</FONT></P><FONT size=2><P></FONT><FONT color=#0000ff size=2>switch</FONT><FONT size=2> (nImage)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> 0:</P><P>{</P><P> ((CMainFrame*)(AfxGetMainWnd()))-&gt;m_wndSplitter2.ReplaceV iew(1, 0, RUNTIME_CLASS(CSearchAccounts2));</P><P>}</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> 1:</P><P>{</P><P> ((CMainFrame*)(AfxGetMainWnd()))-&gt;m_wndSplitter2.ReplaceV iew(1, 0, RUNTIME_CLASS(CSearchAccounts));</P><P>}</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P>}</P></FONT>]]>
   </description>
   <pubDate>Thu, 22 Dec 2005 00:21:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10300&amp;title=managing-panes#10300</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : I removed what i supposed to remove...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10299&amp;title=managing-panes#10299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1631">almatesic</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 21 December 2005 at 1:56pm<br /><br /><P>I removed what i supposed to remove and I added what you told me to do. Below is what the function looks like now. However, I get nothing in the right pane.</P><P>&nbsp;</P><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CShortcutAccounts::OnSelChanged(NMHDR* phrd, LRESULT*)</P><P>{</P><P>LPNMTREEVIEW pnmtv = (LPNMTREEVIEW)phrd;</P><P>&nbsp;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nImage, nSelectedImage;</P><P>m_wndTreeFavorites.GetItemImage(pnmtv-&gt;itemNew.hItem, nImage, nSelectedImage);</P><P></FONT><FONT color=#0000ff size=2>switch</FONT><FONT size=2> (nImage)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> IDI_accounts_Accounts:</P><P> ((CMainFrame*)(AfxGetMainWnd()))-&gt;m_wndSplitter2.ReplaceV iew(1, 0, RUNTIME_CLASS(CSearchAccounts));</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P>}</P><P></P><P>Thank you in advance!</P></FONT>]]>
   </description>
   <pubDate>Wed, 21 Dec 2005 13:56:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10299&amp;title=managing-panes#10299</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : ????  now you have2 variables...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10298&amp;title=managing-panes#10298</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 21 December 2005 at 12:53pm<br /><br /><P>???? </P><P>now you have&nbsp;2 variables called m_wndSplitter2.</P><P>Remove it,&nbsp;ant use </P><P> ((CMainFrame*)(AfxGetMainWnd()))-&gt;m_wndSplitter2.ReplaceV iew(1, 0, RUNTIME_CLASS(CSearchAccounts));</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 21 Dec 2005 12:53:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10298&amp;title=managing-panes#10298</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : Hi Oleg, I defined it in the wrong...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10297&amp;title=managing-panes#10297</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1631">almatesic</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 21 December 2005 at 10:30am<br /><br /><P>Hi Oleg, I defined it in the wrong place. I redefined in the begining of ShortcutAccounts.cpp and it compiles fine. However nothing happens when clicking on the button. Below is the source code for ShortcutAccounts.cpp.</P><FONT size=2><FONT color=#0000ff size=2><FONT size=2><FONT color=#008000 size=2><P>// ShortcutPaneMail.cpp : implementation file</P><P>//</P></FONT><FONT color=#0000ff size=2><P>#include</FONT><FONT size=2><FONT color=#000000> "stdafx.h"</FONT></P></FONT><FONT color=#0000ff size=2><P>#include</FONT><FONT size=2><FONT color=#000000> "falcon1.h"</FONT></P></FONT><FONT color=#0000ff size=2><P>#include</FONT><FONT size=2><FONT color=#000000> "ShortcutAccounts.h"</FONT></P></FONT><FONT color=#0000ff size=2><P>#include</FONT><FONT size=2><FONT color=#000000> "SearchAccounts.h"</FONT></P></FONT><FONT color=#0000ff size=2><P>#include</FONT><FONT size=2><FONT color=#000000> "MainFrm.h"</FONT></P></FONT><FONT color=#0000ff size=2><P>static</FONT><FONT size=2><FONT color=#000000> CSplitterWndEx m_wndSplitter2;</FONT></P><P>BEGIN_MESSAGE_MAP(CShortcutAccounts, CXTPShortcutBarPane)</P><P>ON_NOTIFY(TVN_SELCHANGED, 100, OnSelChanged)</P><P>END_MESSAGE_MAP()</P><P>&nbsp;</P></FONT><FONT color=#0000ff size=2><P>static</FONT><FONT size=2><FONT color=#000000> UINT treeIcons&#091;&#093; =</FONT></P><P>{</P><P>IDI_accounts_Accounts ,IDI_accounts_Contacts, IDI_accounts_NewLeads, IDI_accounts_ToDos, IDI_accounts_PrintCompanies, IDI_accounts_PrintContacts </P><P>};</P><P>CShortcutAccounts::CShortcutAccounts()</P><P>{</P><P>m_ilTreeIcons.Create(24, 24, ILC_MASK|ILC_COLOR32, 1, 1);</P><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = 0; i &lt; _countof(treeIcons); i++)</P><P>{</P><P>&nbsp;</P><P>HICON hIcon = AfxGetApp()-&gt;LoadIcon(treeIcons<em>);</P><P>ASSERT(hIcon);</P><P></P><P>m_ilTreeIcons.Add (hIcon);</P><P>}</P><P>}</P><P>CShortcutAccounts::~CShortcutAccounts()</P><P>{</P><P>}</P><P>BOOL CShortcutAccounts::Create(LPCTSTR lpszCaption, CXTPShortcutBar* pParent)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!CXTPShortcutBarPane::Create(lpszCaption, pParent))</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> FALSE;</P><P></FONT><FONT color=#008000 size=2> //VERIFY(m_wndTreeFavorites.Create(WS_VISIBLE|TVS_HASBUTTONS |TVS_LINESATROOT, CXTPEmptyRect(), this, 100));</P></FONT><FONT size=2><P> VERIFY(m_wndTreeFavorites.Create(WS_VISIBLE|TVS_HASBUTTONS|T VS_LINESATROOT|TVS_SHOWSELALWAYS,  CXTPEmptyRect(), </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, 100));</P><P>m_wndTreeFavorites.SetImageList(&amp;m_ilTreeIcons, TVSIL_NORMAL);</P><P>m_wndTreeFavorites.InsertItem (_T("Accounts"), 0, 0);</P><P>m_wndTreeFavorites.InsertItem (_T("Contacts"), 1, 1);</P><P>m_wndTreeFavorites.InsertItem (_T("New Leads"), 2, 2);</P><P>m_wndTreeFavorites.InsertItem (_T("To-Dos"), 3, 3);</P><P>m_wndTreeFavorites.InsertItem (_T("Print Companies"), 4, 4);</P><P>m_wndTreeFavorites.InsertItem (_T("Print Contacts"), 5, 5);</P><P>&nbsp;</P><P>AddItem(_T("Account Information"), &amp;m_wndTreeFavorites, 115);</P><P>&nbsp;</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> TRUE;</P><P>}</P></FONT><FONT color=#0000ff size=2><P>void</FONT><FONT size=2><FONT color=#000000> CShortcutAccounts::OnSelChanged(NMHDR* phrd, LRESULT*)</FONT></P><P>{</P><P>LPNMTREEVIEW pnmtv = (LPNMTREEVIEW)phrd;</P><P>&nbsp;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nImage, nSelectedImage;</P><P>m_wndTreeFavorites.GetItemImage(pnmtv-&gt;itemNew.hItem, nImage, nSelectedImage);</P><P></FONT><FONT color=#0000ff size=2>switch</FONT><FONT size=2> (nImage)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> IDI_accounts_Accounts:</P><P>{</P><P></P><P>m_wndSplitter2.ReplaceView(1, 0, RUNTIME_CLASS(CSearchAccounts));</P><P></P><P>}</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> IDI_accounts_Contacts:</P><P>{</P><P>m_wndSplitter2.ReplaceView(1, 0, RUNTIME_CLASS(CSearchAccounts));</P><P></P><P>}</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P></P><P>}</P><P></P><P>}</P></FONT></FONT></FONT><FONT size=2></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 21 Dec 2005 10:30:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10297&amp;title=managing-panes#10297</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : Hello, m_wndSplitter2 defined...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10295&amp;title=managing-panes#10295</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 21 December 2005 at 9:34am<br /><br /><P>Hello,</P><P>m_wndSplitter2 defined in CMainFrame not in CShortcutAccounts.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 21 Dec 2005 09:34:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10295&amp;title=managing-panes#10295</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : Here is the error i can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10294&amp;title=managing-panes#10294</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1631">almatesic</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 21 December 2005 at 8:44am<br /><br /><P>Here is the error i can't get rid of</P><FONT size=1><P>ShortcutAccounts.cpp</P><P>c:\Documents and Settings\amatesic\My Documents\Visual Studio Projects\falcon1\ShortcutAccounts.cpp(81) : error C2228: left of '.ReplaceView' must have class/struct/union type</P><P>type is 'int'</P><P>I have attached the new code for ShortcutAccounts.cpp</P><P><A href="https://forum.codejock.com/uploads/almatesic/2005-12-21_084355_falc&#111;n1.rar" target="_blank">2005-12-21_084355_falcon1.rar</A></P><P>&nbsp;</P><P>Thank you,</P></FONT>]]>
   </description>
   <pubDate>Wed, 21 Dec 2005 08:44:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10294&amp;title=managing-panes#10294</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : Ok, here steps: 1. Add message...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10284&amp;title=managing-panes#10284</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 21 December 2005 at 12:28am<br /><br /><P>Ok, here steps:</P><P>1. Add message map</P><FONT size=2><P>BEGIN_MESSAGE_MAP(CShortcutAccounts, CXTPShortcutBarPane)</P><P>ON_NOTIFY(TVN_SELCHANGED, 100, OnSelChanged)</P><P>END_MESSAGE_MAP()</P><P>in header:</P><FONT size=2><P>DECLARE_MESSAGE_MAP()</P></FONT><P>2. Replace line</P><FONT size=2><P> VERIFY(m_wndTreeFavorites.Create(WS_VISIBLE|TVS_HASBUTTONS|T VS_LINESATROOT|TVS_SHOWSELALWAYS,  CXTPEmptyRect(), </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, <strong>100</strong>));</FONT></P><P><FONT size=2></FONT>&nbsp;</P><P><FONT size=2>3. Add handler</FONT></P><P><FONT size=2></FONT>&nbsp;</P><FONT size=2><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CShortcutAccounts::OnSelChanged(NMHDR* phrd, LRESULT*)</P><P>{</P><P>LPNMTREEVIEW pnmtv = (LPNMTREEVIEW)phrd;</P><P></P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nImage, nSelectedImage;</P><P>m_wndTreeFavorites.GetItemImage(pnmtv-&gt;itemNew.hItem, nImage, nSelectedImage);</P><P></FONT><FONT color=#0000ff size=2>switch</FONT><FONT size=2> (nImage)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> IDI_accounts_Accounts:</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P>}</P><P>}</P></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 21 Dec 2005 00:28:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10284&amp;title=managing-panes#10284</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : Oleg your are the man. You got...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10280&amp;title=managing-panes#10280</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1631">almatesic</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 20 December 2005 at 1:58pm<br /><br /><P>Oleg your are the man. You got the outside buttons to work. However I'm still looking to the get the inside buttons to work. Like the accoutns, contacts,&nbsp;new leads, etc&nbsp;buttons, which is&nbsp;within the accounts pane. Here are the id's for the buttons</P><FONT size=2><P>IDI_accounts_Accounts<BR>IDI_accounts_Contacts<BR>IDI_accounts_NewLeads<BR><FONT size=2></FONT></P><P><FONT size=2>Thank you.....your are such a great help to this community.</P></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 20 Dec 2005 13:58:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10280&amp;title=managing-panes#10280</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Panes : Hi, Here code you need:  case...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10279&amp;title=managing-panes#10279</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3422<br /><strong>Posted:</strong> 20 December 2005 at 1:44pm<br /><br /><P>Hi,</P><P>Here code you need:</P><P>&nbsp;</P><FONT size=2><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> XTP_SBN_SELECTION_CHANGED:</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_wndSplitter2.GetSafeHwnd())</P><P>{</P><P></FONT><FONT color=#0000ff size=2>switch</FONT><FONT size=2> (((CXTPShortcutBarItem*)lParam)-&gt;GetID())</P><P>{</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> ID_SHORTCUT_ACCOUNTS:</P><P>m_wndSplitter2.ReplaceView(1, 0, RUNTIME_CLASS(CSearchAccounts1));</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> ID_SHORTCUT_SALES:</P><P>m_wndSplitter2.ReplaceView(1, 0, RUNTIME_CLASS(CSearchAccounts));</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> ID_SHORTCUT_MARKETING:</P><P>m_wndSplitter2.ReplaceView(1, 0, RUNTIME_CLASS(CAccountsView));</P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P>}</P><P>}</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> TRUE;</P><P>&nbsp;</P><P>&nbsp;</P><P>}</P></FONT>]]>
   </description>
   <pubDate>Tue, 20 Dec 2005 13:44:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3422&amp;PID=10279&amp;title=managing-panes#10279</guid>
  </item> 
 </channel>
</rss>