<?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 : unable to switch menus between views</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : unable to switch menus between views]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 08:28:31 +0000</pubDate>
  <lastBuildDate>Sat, 11 Jun 2005 09:18:43 +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=2347</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[unable to switch menus between views : appreciated, thanks Oleg, Peter...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=7030&amp;title=unable-to-switch-menus-between-views#7030</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1081">bevpet</a><br /><strong>Subject:</strong> 2347<br /><strong>Posted:</strong> 11 June 2005 at 9:18am<br /><br /><P>appreciated,</P><P>thanks Oleg,</P><P>Peter</P>]]>
   </description>
   <pubDate>Sat, 11 Jun 2005 09:18:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=7030&amp;title=unable-to-switch-menus-between-views#7030</guid>
  </item> 
  <item>
   <title><![CDATA[unable to switch menus between views : There is line pMenuBar-&amp;gt;Se...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=7028&amp;title=unable-to-switch-menus-between-views#7028</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2347<br /><strong>Posted:</strong> 11 June 2005 at 8:53am<br /><br /><P>There is line</P><P>pMenuBar-&gt;SetFlags(xtpFlagIgnoreSetMenuMessage);</P><P>that don't make it. Remove it.</P>]]>
   </description>
   <pubDate>Sat, 11 Jun 2005 08:53:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=7028&amp;title=unable-to-switch-menus-between-views#7028</guid>
  </item> 
  <item>
   <title><![CDATA[unable to switch menus between views : Hi Oleg, as requested. thank...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=7026&amp;title=unable-to-switch-menus-between-views#7026</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1081">bevpet</a><br /><strong>Subject:</strong> 2347<br /><strong>Posted:</strong> 10 June 2005 at 5:11pm<br /><br /><P>Hi Oleg,</P><P>as requested. thank you</P><P>&nbsp;if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;</P><P>&nbsp;&nbsp;if (!m_wndStatusBar.Create(this) ||<BR>&nbsp;&nbsp;!m_wndStatusBar.SetIndicators(indicators,<BR>&nbsp;&nbsp;&nbsp; sizeof(indicators)/sizeof(UINT)))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create the status bar\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}</P><P><BR>&nbsp;theApp.GetSystemSettings(0);<BR>&nbsp;if (!InitCommandBars())&nbsp;<BR>&nbsp;&nbsp;return -1;</P><P>&nbsp;CXTPCommandBars* pCommandBars = GetCommandBars();<BR>&nbsp;CXTPCommandBar* pMenuBar = pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_MAINFRAME);<BR>&nbsp;pMenuBar-&gt;SetFlags(xtpFlagIgnoreSetMenuMessage);</P><P>&nbsp;CXTPToolBar* pCommandBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T("Standard"), xtpBarTop);<BR>&nbsp;if (!pCommandBar ||<BR>&nbsp;&nbsp;!pCommandBar-&gt;LoadToolBar(IDR_MAINFRAME))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create the main toolbar.\n");<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;}</P><P>&nbsp;pDatabaseBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T("Database Navigation"), xtpBarTop);<BR>&nbsp;if (!pDatabaseBar ||<BR> &nbsp;&nbsp;!pDatabaseBar-&gt;LoadToolBar(IDR_TOOLBAR_DATABA SE))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create the database navigation toolbar.\n");<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;}</P><P>&nbsp;XTPImageManager()-&gt;SetMaskColor((COLORREF)-1); // Auto</P><P>&nbsp;if (XTPImageManager()-&gt;IsAlphaIconsSupported())<BR>&nbsp;{<BR>&nbsp;&nbsp;XTPImageManager()-&gt;SetIcons(IDB_FAVORITES, favoritesicons,<BR>&nbsp;&nbsp;&nbsp;sizeof(favoritesicons)/sizeof(UINT), CSize(16, 16));</P><P> &nbsp;&nbsp;XTPPaintManager()-&gt;GetIconsInfo()-&gt;bUseDis abledIcons = TRUE;<BR>&nbsp;&nbsp;CXTPImageManager::m_dDisabledBrightnessFactor = 2.0;<BR>&nbsp;&nbsp;CXTPImageManager::m_dDisabledAlphaFactor = 4.0;</P><P>&nbsp;} else<BR>&nbsp;{<BR> &nbsp;&nbsp;CXTPOffice2003Theme::LoadModernToolbarIcons(IDR_ MAINFRAME);<BR> &nbsp;&nbsp;CXTPOffice2003Theme::LoadModernToolbarIcons(IDR_ MAINFRAME1);<BR> &nbsp;&nbsp;CXTPOffice2003Theme::LoadModernToolbarIcons(IDR_ TOOLBAR_WEB);<BR> &nbsp;&nbsp;CXTPOffice2003Theme::LoadModernToolbarIcons(IDR_ TOOLBAR_DATABASE);<BR>&nbsp;}<BR>&nbsp;XTPImageManager()-&gt;SetIcons(IDR_MAINFRAME);<BR>&nbsp;XTPImageManager()-&gt;SetIcons(IDR_TOOLBAR_WEB);<BR>&nbsp;XTPImageManager()-&gt;SetIcons(IDR_TOOLBAR_DATABASE);<BR></P><P>&nbsp;CXTPToolBar* pWebBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T("Web"), xtpBarTop);<BR>&nbsp;if (!pWebBar ||<BR>&nbsp;&nbsp;!pWebBar-&gt;LoadToolBar(IDR_TOOLBAR_WEB))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create the web browser toolbar.\n");<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;}</P><P>&nbsp;LoadCommandBars(_T("CommandBars"));<BR>&nbsp;CCustomizePageTools::LoadTools("UserTools");</P><P>&nbsp;GetDockingPaneManager()-&gt;InstallDockingPanes(this);<BR> &nbsp;m_paneManager.SetTheme((XTPDockingPanePaintTheme)theAp p.m_nPaneTheme);<BR>&nbsp;m_paneManager.SetAlphaDockingContext(TRUE);<BR>&nbsp;m_paneManager.SetShowDockingContextStickers(TRUE);</P><P>&nbsp;CXTPDockingPaneLayout layoutNormal(GetDockingPaneManager());<BR>&nbsp;if (layoutNormal.Load(_T("NormalLayout")))<BR>&nbsp;{<BR> &nbsp;&nbsp;GetDockingPaneManager()-&gt;SetLayout(&amp;layou tNormal);<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPDockingPane* paneOutput = GetDockingPaneManager()-&gt;CreatePane(<BR>&nbsp;&nbsp;&nbsp;ID_VIEW_OUTPUT_VIEW, CRect(0, 0, 210, 140), xtpPaneDockBottom);</P><P>&nbsp;&nbsp;CXTPDockingPane* paneFindInFilesView = GetDockingPaneManager()-&gt;CreatePane(<BR>&nbsp;&nbsp;&nbsp;ID_VIEW_FINDINFILES_VIEW, CRect(0, 0, 210, 140), xtpPaneDockBottom);</P><P>&nbsp;&nbsp;CXTPDockingPane* paneHelpView = GetDockingPaneManager()-&gt;CreatePane(<BR>&nbsp;&nbsp;&nbsp;ID_VIEW_DYNAMICHELP_VIEW, CRect(0, 0, 210, 140), xtpPaneDockRight);</P><P>&nbsp;&nbsp;CXTPDockingPane* paneTasksView = GetDockingPaneManager()-&gt;CreatePane(<BR>&nbsp;&nbsp;&nbsp;ID_VIEW_TASKS_VIEW, CRect(0, 0, 210, 140), xtpPaneDockBottom);</P><P> &nbsp;&nbsp;GetDockingPaneManager()-&gt;AttachPane(paneOutpu t, paneTasksView);<BR> &nbsp;&nbsp;GetDockingPaneManager()-&gt;AttachPane(paneFindI nFilesView, paneTasksView);</P><P>&nbsp;&nbsp;paneTasksView-&gt;Select();<BR>&nbsp;&nbsp;}</P><P>&nbsp;if (!CreateTaskPanel())&nbsp;return FALSE;</P><P> &nbsp;pCommandBars-&gt;GetCommandBarsOptions()-&gt;animation Type =  &nbsp;&nbsp;(XTPAnimationType)theApp.m_bxtpAnimateWindowsDef ault;<BR> &nbsp;pCommandBars-&gt;GetCommandBarsOptions()-&gt;bAlwaysSh owFullMenus = theApp.m_bAlwaysShowFullMenus;<BR> &nbsp;pCommandBars-&gt;GetCommandBarsOptions()-&gt;bDblClick Float = TRUE;<BR>&nbsp;pCommandBars-&gt;HideCommands(uHideCmds, _countof(uHideCmds));</P><P>&nbsp;int nIDIcons&#091;&#093; = { // assign to menu/pane/tab item id<BR>&nbsp;&nbsp;XTPIDCUSTOMIZE, ID_VIEW_PROPERTIESWINDOW, 0, ID_VIEW_OUTPUT_VIEW,<BR>&nbsp;&nbsp;0, 0, ID_VIEW_TASKS_VIEW, 0, 0, 0, 0, ID_VIEW_FINDINFILES_VIEW, 0, 0, <BR>&nbsp;&nbsp;0, ID_VIEW_DYNAMICHELP_VIEW<BR>&nbsp;};</P><P> &nbsp;GetDockingPaneManager()-&gt;SetIcons(IDB_BITMAP_PANELI CONS, nIDIcons,<BR>&nbsp;&nbsp;sizeof(nIDIcons)/sizeof(nIDIcons&#091;0&#093;), RGB(0, 255, 0));</P><P>&nbsp;VERIFY(m_MTIClientWnd.Attach(this, TRUE));<BR>&nbsp;m_MTIClientWnd.GetPaintManager()-&gt;m_bShowIcons = TRUE;<BR>&nbsp;m_MTIClientWnd.SetAllowReorder(theApp.m_bAllowReorder&#091;0&#093;);<BR>&nbsp;m_MTIClientWnd.EnableToolTips();</P><P>&nbsp;CXTPTabPaintManager* pTabPaintManager = new CXTPTabPaintManager();<BR> &nbsp;pTabPaintManager-&gt;SetColor(XTPTabColorStyle(theApp. m_nxtpTabColor&#091;0&#093;));<BR> &nbsp;pTabPaintManager-&gt;SetAppearance(XTPTabAppearanceSty le(theApp.m_nxtpTabAppearance&#091;0&#093;));<BR>&nbsp;pTabPaintManager-&gt;m_bOneNoteColors = theApp.m_bOneNoteColors&#091;0&#093;;<BR>&nbsp;pTabPaintManager-&gt;m_bHotTracking = theApp.m_bHotTracking&#091;0&#093;;<BR>&nbsp;pTabPaintManager-&gt;m_bShowIcons = theApp.m_bShowIcons&#091;0&#093;;<BR>&nbsp;pTabPaintManager-&gt;m_szIcon = theApp.m_bLargeIcons&#091;0&#093;? CSize(32, 32): CSize(16, 16);<BR>&nbsp;pTabPaintManager-&gt;m_bBoldSelected = theApp.m_bBoldSelected&#091;0&#093;;<BR>&nbsp;pTabPaintManager-&gt;m_bStaticFrame = theApp.m_bShowStaticFrame&#091;0&#093;;<BR>&nbsp;pTabPaintManager-&gt;m_bOneNoteColors = theApp.m_bOneNoteColors&#091;0&#093;;<BR>&nbsp;pTabPaintManager-&gt;m_bHotTracking = theApp.m_bHotTracking&#091;0&#093;;<BR>&nbsp;pTabPaintManager-&gt;m_clientFrame = XTPTabClientFrame(theApp.m_nClientFrameStyle&#091;0&#093;);<BR> &nbsp;pTabPaintManager-&gt;SetLayout(XTPTabLayoutStyle(theAp p.m_nxtpTabLayout&#091;0&#093;));&nbsp;<BR> &nbsp;pTabPaintManager-&gt;SetPosition(XTPTabPosition(theApp .m_nTabPositions&#091;0&#093;));<BR> &nbsp;pTabPaintManager-&gt;GetAppearanceSet()-&gt;m_rcHeader Margin.SetRect(2, 6, 2, 0);<BR>&nbsp;pTabPaintManager-&gt;m_rcClientMargin.SetRect(2, 2, 2, 2);<BR>&nbsp;pTabPaintManager-&gt;m_rcButtonMargin.SetRect(4, 1, 4, 1);&nbsp;</P><P>&nbsp;m_MTIClientWnd.SetPaintManager(pTabPaintManager);<BR>&nbsp;<BR>&nbsp;CXTWindowPos wndPosition;<BR>&nbsp;wndPosition.LoadWindowPos(this);</P><P>&nbsp;theApp.GetSystemSettings(0);&nbsp;// LOAD USER PREFERENCES<BR>&nbsp;theApp.GetSystemSettings(1);<BR>&nbsp;theApp.GetSystemSettings(2);<BR>&nbsp;theApp.GetSystemSettings(3);</P><P> &nbsp;CXTPPaintManager::SetTheme((XTPPaintTheme)theApp.m_nPa intTheme);<BR>&nbsp;OnSwitchTheme();</P><P><BR>&nbsp;return true;<BR>}<BR></P>]]>
   </description>
   <pubDate>Fri, 10 Jun 2005 17:11:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=7026&amp;title=unable-to-switch-menus-between-views#7026</guid>
  </item> 
  <item>
   <title><![CDATA[unable to switch menus between views : hi, probably missing something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=6961&amp;title=unable-to-switch-menus-between-views#6961</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1081">bevpet</a><br /><strong>Subject:</strong> 2347<br /><strong>Posted:</strong> 08 June 2005 at 11:34pm<br /><br /><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>hi,</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>probably missing something again with the xtreme toolkit.</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>simple problem, i want to display a different menu when one of my other forms is displayed, but for some reason its not, i'm guessing there must another call i need to make to activate the menu i want besides having this :</FONT></P><P align=left><FONT color=#008000><FONT face="Arial, Helvetica, sans-serif" size=1>// Register the application's document templates. Document templates</FONT></P></FONT><P align=left><FONT color=#008000><FONT face="Arial, Helvetica, sans-serif" size=1>// serve as the connection between documents, frame windows and views.</FONT></P></FONT><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>m_pDocTemplateStartPage = <FONT color=#0000ff>new</FONT> CMultiDocTemplate(</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>IDR_MAINFRAME,</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>RUNTIME_CLASS(CStartPageDoc),</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>RUNTIME_CLASS(CChildFrame),</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>RUNTIME_CLASS(CStartPageView));</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>AddDocTemplate(m_pDocTemplateStartPage);</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>//&nbsp; main menu is above</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>////////////////////////////////////////////////////////////</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>m_pDocTemplateBrowserPage = <FONT color=#0000ff>new</FONT> CMultiDocTemplate(</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>IDR_IE_MENU,</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>RUNTIME_CLASS(CStartPageDoc),</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>RUNTIME_CLASS(CChildFrame),</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>RUNTIME_CLASS(CBrowserView));</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>AddDocTemplate(m_pDocTemplateBrowserPage);</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1></FONT>&nbsp;</P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>// this is class is a simple browser with the IE toolbar i'd like to so</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>// as the maintool bar is getting too cluttered.</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1> //////////////////////////////////////////////////////////// /////////////////</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1></FONT>&nbsp;</P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>any help on the above appreciated or where to look in the docs for the solution appreciated.</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>thanks</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1>Peter</FONT></P><P align=left><FONT face="Arial, Helvetica, sans-serif" size=1></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 08 Jun 2005 23:34:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=6961&amp;title=unable-to-switch-menus-between-views#6961</guid>
  </item> 
  <item>
   <title><![CDATA[unable to switch menus between views : Please show CMainFrame::OnCreate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=6962&amp;title=unable-to-switch-menus-between-views#6962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2347<br /><strong>Posted:</strong> 08 June 2005 at 11:02pm<br /><br />Please show CMainFrame::OnCreate]]>
   </description>
   <pubDate>Wed, 08 Jun 2005 23:02:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2347&amp;PID=6962&amp;title=unable-to-switch-menus-between-views#6962</guid>
  </item> 
 </channel>
</rss>