<?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[StatusBar für jede CView in MDI-Anwendung]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>Wie kann ich jeder einzelnen View in meiner MDI-Anwendung eine Statusbar zuweisen?</p>
<p>Folgendes habe ich bereits versucht:</p>
<pre><code class="language-cpp">static UINT indicators[] =
{
	ID_SEPARATOR,           // status line indicator
};
</code></pre>
<pre><code class="language-cpp">int CXXXView::OnCreate(LPCREATESTRUCT lpCreateStruct)
	{
	if (CView::OnCreate(lpCreateStruct) == -1)
		return -1;

	if (m_wndStatusBar.Create(this))
		m_wndStatusBar.SetIndicators(indicators, sizeof(indicators) / sizeof(UINT));
	else
		{
		TRACE0(&quot;Failed to create status bar in view\n&quot;);
		return -1; // fail to create
		}

	return 0;
	}
</code></pre>
<p>Das Create schlägt zwar nicht fehl, allerdings wird trotzdem keine Statuszeile in meinen Views angezeigt...</p>
<p>Ist das Prinzipiell möglich und wenn ja, wie?</p>
<p>danke, mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/183352/statusbar-für-jede-cview-in-mdi-anwendung</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 02:42:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/183352.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jun 2007 10:42:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to StatusBar für jede CView in MDI-Anwendung on Mon, 04 Jun 2007 10:42:31 GMT]]></title><description><![CDATA[<p>Hallo zusammen!</p>
<p>Wie kann ich jeder einzelnen View in meiner MDI-Anwendung eine Statusbar zuweisen?</p>
<p>Folgendes habe ich bereits versucht:</p>
<pre><code class="language-cpp">static UINT indicators[] =
{
	ID_SEPARATOR,           // status line indicator
};
</code></pre>
<pre><code class="language-cpp">int CXXXView::OnCreate(LPCREATESTRUCT lpCreateStruct)
	{
	if (CView::OnCreate(lpCreateStruct) == -1)
		return -1;

	if (m_wndStatusBar.Create(this))
		m_wndStatusBar.SetIndicators(indicators, sizeof(indicators) / sizeof(UINT));
	else
		{
		TRACE0(&quot;Failed to create status bar in view\n&quot;);
		return -1; // fail to create
		}

	return 0;
	}
</code></pre>
<p>Das Create schlägt zwar nicht fehl, allerdings wird trotzdem keine Statuszeile in meinen Views angezeigt...</p>
<p>Ist das Prinzipiell möglich und wenn ja, wie?</p>
<p>danke, mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298324</guid><dc:creator><![CDATA[suamikim]]></dc:creator><pubDate>Mon, 04 Jun 2007 10:42:31 GMT</pubDate></item><item><title><![CDATA[Reply to StatusBar für jede CView in MDI-Anwendung on Mon, 04 Jun 2007 11:03:19 GMT]]></title><description><![CDATA[<p>Probier mal den Code, anstatt in der View, in der von CMDIChildWnd abgeleiteten Klasse reinzusetzen.</p>
<p>Dort sollte es eigentlich funktionieren, wenn du alle Parameter entsprechend mitgenommen hast.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298341</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298341</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Mon, 04 Jun 2007 11:03:19 GMT</pubDate></item><item><title><![CDATA[Reply to StatusBar für jede CView in MDI-Anwendung on Mon, 04 Jun 2007 11:13:14 GMT]]></title><description><![CDATA[<p>Joa danke!</p>
<p>// Wie dumm muss man sein, um nicht selbst auf sowas zu kommen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298355</guid><dc:creator><![CDATA[suamikim]]></dc:creator><pubDate>Mon, 04 Jun 2007 11:13:14 GMT</pubDate></item><item><title><![CDATA[Reply to StatusBar für jede CView in MDI-Anwendung on Mon, 04 Jun 2007 11:33:19 GMT]]></title><description><![CDATA[<p>Ok, das funktioniert soweit, nur müsste ich jetzt noch wissen, wie ich aus der View auf das ChildFrame zugreifen kann?</p>
<p>Gibt es da eine Methode wie AfxGetMainWnd??</p>
<p>danke, mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298380</guid><dc:creator><![CDATA[suamikim]]></dc:creator><pubDate>Mon, 04 Jun 2007 11:33:19 GMT</pubDate></item><item><title><![CDATA[Reply to StatusBar für jede CView in MDI-Anwendung on Mon, 04 Jun 2007 11:37:19 GMT]]></title><description><![CDATA[<p>Mit GetParentFrame()!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298384</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298384</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 04 Jun 2007 11:37:19 GMT</pubDate></item><item><title><![CDATA[Reply to StatusBar für jede CView in MDI-Anwendung on Mon, 04 Jun 2007 11:57:04 GMT]]></title><description><![CDATA[<p>danke, funzt!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298416</guid><dc:creator><![CDATA[suamikim]]></dc:creator><pubDate>Mon, 04 Jun 2007 11:57:04 GMT</pubDate></item></channel></rss>