<?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[DockControlBar]]></title><description><![CDATA[<p>Hi</p>
<p>ich will zwei ControlBars auf der rechten Seite haben</p>
<p>DockControlBar(&amp;m_Clock, AFX_IDW_DOCKBAR_RIGHT);<br />
DockControlBar(&amp;m_Picture, AFX_IDW_DOCKBAR_RIGHT);</p>
<p>sich auch beide ganz rechts, aber nebeneinander. Ich will die ganz rechts haben, aber untereinander.</p>
<p>MfG<br />
CPP_Dau</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148740/dockcontrolbar</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 05:22:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148740.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 May 2006 03:04:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DockControlBar on Tue, 30 May 2006 03:04:22 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>ich will zwei ControlBars auf der rechten Seite haben</p>
<p>DockControlBar(&amp;m_Clock, AFX_IDW_DOCKBAR_RIGHT);<br />
DockControlBar(&amp;m_Picture, AFX_IDW_DOCKBAR_RIGHT);</p>
<p>sich auch beide ganz rechts, aber nebeneinander. Ich will die ganz rechts haben, aber untereinander.</p>
<p>MfG<br />
CPP_Dau</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1067761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1067761</guid><dc:creator><![CDATA[CPP_Dau]]></dc:creator><pubDate>Tue, 30 May 2006 03:04:22 GMT</pubDate></item><item><title><![CDATA[Reply to DockControlBar on Tue, 30 May 2006 06:20:52 GMT]]></title><description><![CDATA[<p>Auch wenn der Name irritiert nimm die Funktion DockControlBarLeftOf</p>
<pre><code class="language-cpp">void CMainFrame::DockControlBarLeftOf(CControlBar* pBar, CControlBar* pLeftOf)
{
	ASSERT_VALID (m_pFrame);
	ASSERT_VALID (pBar);
	ASSERT_VALID (pLeftOf);

	CRect rect;
	DWORD dw;
	UINT n;

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

	pLeftOf-&gt;GetWindowRect(&amp;rect);
	rect.OffsetRect(1,1);
	dw=pLeftOf-&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.
	m_pFrame-&gt;DockControlBar (pBar,n,&amp;rect);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1067788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1067788</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 30 May 2006 06:20:52 GMT</pubDate></item></channel></rss>