<?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 : Migrati&#111;n problem..toolbar layout bad!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Migrati&#111;n problem..toolbar layout bad!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 13:13:08 +0000</pubDate>
  <lastBuildDate>Mon, 04 Jul 2005 01:33:25 +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=2486</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[Migrati&#111;n problem..toolbar layout bad! :  It works!  Thank you and have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2486&amp;PID=7428&amp;title=migration-problem-toolbar-layout-bad#7428</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1291">Joyce</a><br /><strong>Subject:</strong> 2486<br /><strong>Posted:</strong> 04 July 2005 at 1:33am<br /><br /><P>&nbsp;</P><P>It works!&nbsp;&nbsp; <IMG src="http://forum.codejock.com/smileys/smiley36.gif" border="0"></P><P>Thank you and have a nice day!</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 04 Jul 2005 01:33:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2486&amp;PID=7428&amp;title=migration-problem-toolbar-layout-bad#7428</guid>
  </item> 
  <item>
   <title><![CDATA[Migrati&#111;n problem..toolbar layout bad! : move&amp;#034;xtreme toolkit command...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2486&amp;PID=7422&amp;title=migration-problem-toolbar-layout-bad#7422</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2486<br /><strong>Posted:</strong> 03 July 2005 at 11:30pm<br /><br /><P>move&nbsp;"xtreme toolkit command bar creation start" block before </P><P>EnableDocking(CBRS_ALIGN_ANY);</P>]]>
   </description>
   <pubDate>Sun, 03 Jul 2005 23:30:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2486&amp;PID=7422&amp;title=migration-problem-toolbar-layout-bad#7422</guid>
  </item> 
  <item>
   <title><![CDATA[Migrati&#111;n problem..toolbar layout bad! : Hi, I am migrating my MDI application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2486&amp;PID=7391&amp;title=migration-problem-toolbar-layout-bad#7391</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1291">Joyce</a><br /><strong>Subject:</strong> 2486<br /><strong>Posted:</strong> 30 June 2005 at 11:38pm<br /><br /><P>Hi,</P><P>I am migrating my MDI application with toolbar and docking windows to Xtreme toolkit.</P><P>I replaced the CToolbar class with CXTToolbar as follow the&nbsp;guidance of ToolkitProManual.</P><P>I planed to change toolbar immediately and to defer changing the docking windows later for some reasons.</P><P>Docking window&nbsp;uses a CSizingControlBar(from codeguru)&nbsp;-derived class.</P><P>But, unfortunately, I can't layout toolbar and docking bars pretty.</P><P><IMG src="uploads/Joyce/2005-06-30_232935_bad_layout.JPG" border="0"></P><P>I want to put docking window below the toolbar..<IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0"></P><P>Can I do this job without replacing the docking window to the one in Xtreme toolkit ?</P><P>Below is my test program's CMainFrame::OnCreate()</P><P>=============================================</P><P>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{<BR>&nbsp;if (CFrameWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;</P><P>// --- status bar creation <BR>&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 status bar\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}</P><P><BR>&nbsp;EnableDocking(CBRS_ALIGN_ANY);</P><P>// --- instant bar --- Docking window not derived from xtreme toolkit<BR>&nbsp;if (!m_wndInstantBar.Create(_T("Instant Bar"), this, 127))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create instant bar\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;// fail to create<BR>&nbsp;}<BR> &nbsp;m_wndInstantBar.SetSCBStyle(m_wndInstantBar.GetSCBStyl e() |<BR>&nbsp;&nbsp;SCBS_SIZECHILD);<BR>&nbsp;if (!m_wndIBTree.Create(WS_CHILD|WS_VISIBLE|<BR>&nbsp;&nbsp;TVS_HASLINES|TVS_HASBUTTONS|TVS_LINESATROOT,<BR>&nbsp;&nbsp;CRect(0, 0, 0, 0), &amp;m_wndInstantBar, 100))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create instant bar child\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;// fail to create<BR>&nbsp;}<BR>&nbsp;m_wndIBTree.ModifyStyleEx(0, WS_EX_CLIENTEDGE);<BR>&nbsp;<BR>&nbsp;// bring the tooltips to front<BR>&nbsp;CWnd* pTT = FromHandle((HWND) m_wndIBTree.SendMessage(TVM_GETTOOLTIPS));<BR>&nbsp;&nbsp;&nbsp; if (pTT != NULL)<BR>&nbsp;&nbsp;pTT-&gt;SetWindowPos(&amp;wndTopMost, 0, 0, 0, 0,<BR>&nbsp;&nbsp;SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE);<BR>&nbsp;<BR>&nbsp;// populate the treectrl<BR>&nbsp;HTREEITEM hti = m_wndIBTree.InsertItem(_T("Node 1"));<BR>&nbsp;m_wndIBTree.InsertItem(_T("Node 2"));<BR>&nbsp;m_wndIBTree.InsertItem(_T("SubNode 11"), hti);<BR>&nbsp;m_wndIBTree.InsertItem(_T("SubNode 12"), hti);<BR>&nbsp;// --- end instant bar creation and child setup ---<BR>&nbsp;<BR> &nbsp;m_wndInstantBar.SetBarStyle(m_wndInstantBar.GetBarStyl e() |<BR>&nbsp;&nbsp;CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);</P><P> &nbsp;m_wndInstantBar.EnableDocking(CBRS_ALIGN_LEFT|CBRS_ALI GN_RIGHT);</P><P>&nbsp;<BR>#ifdef _SCB_REPLACE_MINIFRAME<BR>&nbsp;&nbsp;&nbsp; m_pFloatingFrameClass = RUNTIME_CLASS(CSCBMiniDockFrameWnd);<BR>#endif //_SCB_REPLACE_MINIFRAME</P><P>&nbsp;// dock mybar2 on the same row with mybar1<BR>&nbsp;RecalcLayout();<BR>&nbsp;CRect rBar;<BR>&nbsp;DockControlBar(&amp;m_wndInstantBar, AFX_IDW_DOCKBAR_LEFT);<BR>&nbsp;<BR>&nbsp;CString sProfile = _T("BarState");<BR>&nbsp;if (VerifyBarState(sProfile))<BR>&nbsp;{<BR>&nbsp;&nbsp;CSizingControlBar::GlobalLoadState(this, sProfile);<BR>&nbsp;&nbsp;LoadBarState(sProfile);<BR>&nbsp;}</P><P>// --- instant bar --- creation end<BR> //////////////////////////////////////////////////////////// //////<BR>// xtreme toolkit command bar creation start<BR>// Initialize the command bars<BR>&nbsp;&nbsp;&nbsp; if (!InitCommandBars())<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;</P><P>&nbsp;&nbsp;&nbsp; // Get a pointer to the command bars object.<BR>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<BR>&nbsp;&nbsp;&nbsp; if(pCommandBars == NULL)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE0("Failed to create command bars object.\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; // Add the menu bar<BR>&nbsp;&nbsp;&nbsp; CXTPToolBar* pMenuBar = pCommandBars-&gt;SetMenu(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _T("Menu Bar"), IDR_MAINFRAME);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; if(pMenuBar == NULL)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE0("Failed to create menu bar.\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; // Create ToolBar<BR>&nbsp;&nbsp;&nbsp; CXTPToolBar* pToolBar = (CXTPToolBar*)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pCommandBars-&gt;Add(_T("Standard"), xtpBarTop);<BR>&nbsp;&nbsp;&nbsp; if (!pToolBar || !pToolBar-&gt;LoadToolBar(IDR_MAINFRAME))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE0("Failed to create toolbar\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<BR>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp; &nbsp;pMenuBar-&gt;SetFlags(xtpFlagAddMDISysPopup);<BR>&nbsp;&nbsp;&nbsp; // Set Office 2003 Theme<BR>&nbsp;&nbsp;&nbsp; CXTPPaintManager::SetTheme(xtpThemeOffice2003);</P><P>&nbsp;return 0;<BR>}</P><P>Please let me know the best way to layout&nbsp; normally.</P><P>Thanks in advance,</P><P>Joyce</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 30 Jun 2005 23:38:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2486&amp;PID=7391&amp;title=migration-problem-toolbar-layout-bad#7391</guid>
  </item> 
 </channel>
</rss>