<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[2 Toolbars nebeneinander]]></title><description><![CDATA[<p>Hallo, ich erstelle zwei Toolbars:</p>
<p>cToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | TBSTYLE_WRAPABLE | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC ); //| TBSTYLE_WRAPABLE<br />
cToolBar.LoadToolBar(IDR_MAINTOOLBAR); // IDR_MAINTOOLBAR<br />
cToolBar.ShowWindow(SW_SHOW);<br />
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0);</p>
<p>cToolBarBrowser.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | TBSTYLE_WRAPABLE | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC ); //| TBSTYLE_WRAPABLE<br />
cToolBarBrowser.LoadToolBar(IDR_BROWSERTOOLBAR);<br />
cToolBarBrowser.ShowWindow(SW_SHOW);<br />
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0);</p>
<p>wie bekomme ich die zweite Toolbar dazu nicht unter der ersten sondern neben derersten abzuhängen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/66739/2-toolbars-nebeneinander</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 00:22:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/66739.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Mar 2004 09:06:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2 Toolbars nebeneinander on Tue, 02 Mar 2004 09:06:06 GMT]]></title><description><![CDATA[<p>Hallo, ich erstelle zwei Toolbars:</p>
<p>cToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | TBSTYLE_WRAPABLE | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC ); //| TBSTYLE_WRAPABLE<br />
cToolBar.LoadToolBar(IDR_MAINTOOLBAR); // IDR_MAINTOOLBAR<br />
cToolBar.ShowWindow(SW_SHOW);<br />
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0);</p>
<p>cToolBarBrowser.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | TBSTYLE_WRAPABLE | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC ); //| TBSTYLE_WRAPABLE<br />
cToolBarBrowser.LoadToolBar(IDR_BROWSERTOOLBAR);<br />
cToolBarBrowser.ShowWindow(SW_SHOW);<br />
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0);</p>
<p>wie bekomme ich die zweite Toolbar dazu nicht unter der ersten sondern neben derersten abzuhängen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/471369</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/471369</guid><dc:creator><![CDATA[G-Ast]]></dc:creator><pubDate>Tue, 02 Mar 2004 09:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Toolbars nebeneinander on Tue, 02 Mar 2004 09:25:17 GMT]]></title><description><![CDATA[<p>Dafür hatte ich mal eine schicke kleine Funktion bei Codeproject gefunden:</p>
<pre><code class="language-cpp">void CMainFrame::DockControlBarLeftOf(CToolBar* Bar, CToolBar* LeftOf)
{
	CRect rect;
	DWORD dw;
	UINT n;

	// get MFC to adjust the dimensions of all docked ToolBars
	// so that GetWindowRect will be accurate
	RecalcLayout(TRUE);

	LeftOf-&gt;GetWindowRect(&amp;rect);
	rect.OffsetRect(1,0);
	dw=LeftOf-&gt;GetBarStyle();
	n = 0;
	n = (dw&amp;CBRS_ALIGN_TOP) ? AFX_IDW_DOCKBAR_TOP : n;
	n = (dw&amp;CBRS_ALIGN_BOTTOM &amp;&amp; n==0) ? AFX_IDW_DOCKBAR_BOTTOM : n;
	n = (dw&amp;CBRS_ALIGN_LEFT &amp;&amp; n==0) ? AFX_IDW_DOCKBAR_LEFT : n;
	n = (dw&amp;CBRS_ALIGN_RIGHT &amp;&amp; n==0) ? AFX_IDW_DOCKBAR_RIGHT : n;

	// When we take the default parameters on rect, DockControlBar will dock
	// each Toolbar on a seperate line. By calculating a rectangle, we
	// are simulating a Toolbar being dragged to that location and docked.
	DockControlBar(Bar,n,&amp;rect);
}
</code></pre>
<p>erklärt sich hoffentlich von selbst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/471387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/471387</guid><dc:creator><![CDATA[TheBigW]]></dc:creator><pubDate>Tue, 02 Mar 2004 09:25:17 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Toolbars nebeneinander on Tue, 02 Mar 2004 15:39:04 GMT]]></title><description><![CDATA[<p>Das Beispiel scheint mir nicht von einer Dialogfeldbasierenden Anwendung zu sein, schade.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/471712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/471712</guid><dc:creator><![CDATA[G-Ast]]></dc:creator><pubDate>Tue, 02 Mar 2004 15:39:04 GMT</pubDate></item></channel></rss>