<?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[TreeView in SplittedWindow darstellen]]></title><description><![CDATA[<p>Ich habe ein Projekt im Explorer-Stil erstellt.<br />
Wie kann ich denn jetzt meinem linken Fenster eine Tree View zuweisen?<br />
Geht das nicht mit dem Ressourcen-Editor?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/179805/treeview-in-splittedwindow-darstellen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 11:53:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/179805.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Apr 2007 13:41:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Wed, 25 Apr 2007 13:41:43 GMT]]></title><description><![CDATA[<p>Ich habe ein Projekt im Explorer-Stil erstellt.<br />
Wie kann ich denn jetzt meinem linken Fenster eine Tree View zuweisen?<br />
Geht das nicht mit dem Ressourcen-Editor?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273244</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273244</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Wed, 25 Apr 2007 13:41:43 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Wed, 25 Apr 2007 14:14:24 GMT]]></title><description><![CDATA[<p>Nein! Das musst Du beim erzeugen des Splitters machen.</p>
<p>Hast Du nicht eine Explorer-Like Applikation durch den Wizard erzeugen lassen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273281</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 25 Apr 2007 14:14:24 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Wed, 25 Apr 2007 14:20:17 GMT]]></title><description><![CDATA[<p>Schau mal bei <a href="http://www.c-plusplus.net/forum/topic,4525.html" rel="nofollow">http://www.c-plusplus.net/forum/topic,4525.html</a> vorbei</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273286</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Wed, 25 Apr 2007 14:20:17 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 06:45:30 GMT]]></title><description><![CDATA[<p>Doch ich habe beim Erstellen des neuen Projektes eine Anwendung im Stil des Explorers erzeugt.<br />
Nun habe ich auch die Klasse CLeftView in meinem Projekt.<br />
Nur weiß jetzt nicht wie und wo ich die TreeView einbinden kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273667</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 26 Apr 2007 06:45:30 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 08:09:38 GMT]]></title><description><![CDATA[<p>Die Einträge in der TreeView hab ich geschafft.<br />
Was mir jetzt noch fehlt sind die + oder - an den Knoten und eine gestrichelte Linie zwischen den einzelnen Elementen.<br />
Weiß jemand wie man das macht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273735</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 26 Apr 2007 08:09:38 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 09:47:34 GMT]]></title><description><![CDATA[<p>Indem man das Treeview mit den entsprechenden Stilen: TVS_HASLINES und TVS_HASBUTTONS ausstattet.</p>
<p>Selbst als Anfänger sollte man wenigstens etwas in der MSDN lesen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273797</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 26 Apr 2007 09:47:34 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 10:51:26 GMT]]></title><description><![CDATA[<p>Das ist schon klar welche Stile ich setzen muss.<br />
Aber da ich nirgends den Code finde, indem meine TreeCtrl erstellt wird weiß ich nicht wo ich diese Stile jetzt setzen muss.</p>
<pre><code class="language-cpp">m_TreeCtrl-&gt;Create(WS_VISIBLE | WS_TABSTOP | WS_CHILD | WS_BORDER
   | TVS_HASBUTTONS | TVS_LINESATROOT | TVS_HASLINES
   | TVS_DISABLEDRAGDROP,
   CRect(10, 10, 300, 100), this, 0x1005);
</code></pre>
<p>Ich habe keine Variable ähnlich m_TreeCtrl.<br />
Bei mir erfolgt der Zugriff auf die Baumstruktur über GetViewCtrl() in der Klasse CLeftView.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273833</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273833</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 26 Apr 2007 10:51:26 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 11:22:24 GMT]]></title><description><![CDATA[<p>Dein Tree wird als View IMHO mit CSplitterWnd::CreateView erzeugt.</p>
<p>Überschreibe in Deiner CMyTreeView::PreCreateWindow, dort setzt Du</p>
<pre><code class="language-cpp">cs.style |= TVS_HASBUTTONS | TVS_LINESATROOT | TVS_HASLINES | TVS_DISABLEDRAGDROP;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1273855</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273855</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 26 Apr 2007 11:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 11:53:17 GMT]]></title><description><![CDATA[<p>Hab jetzt eine neue Klasse CMyTreeView erstellt, und sie von CTreeView abgeleitet. Habe auch PreCreateWindow überschrieben.</p>
<pre><code class="language-cpp">pragma once
#include &quot;afxcview.h&quot;

class CMyTreeView : public CTreeView
{
public:
	CMyTreeView(void);
	~CMyTreeView(void);
protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT&amp; cs);
};

BOOL CMyTreeView::PreCreateWindow(CREATESTRUCT&amp; cs)
{
	cs.style |= TVS_HASBUTTONS | TVS_LINESATROOT | TVS_HASLINES | TVS_DISABLEDRAGDROP;

	return CTreeView::PreCreateWindow(cs);
}
</code></pre>
<pre><code class="language-cpp">// LeftView.cpp : Implementierung der Klasse CLeftView
//

#include &quot;stdafx.h&quot;
#include &quot;SipromT.h&quot;

#include &quot;MyTreeView.h&quot;
#include &quot;SipromTDoc.h&quot;
#include &quot;LeftView.h&quot;

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CLeftView

IMPLEMENT_DYNCREATE(CLeftView, CTreeView)

BEGIN_MESSAGE_MAP(CLeftView, CTreeView)
END_MESSAGE_MAP()

// CLeftView Erstellung/Zerstörung

CLeftView::CLeftView()
{
	m_pImageListTree = new CImageList;    /*create the image list*/
}

CLeftView::~CLeftView()
{
	DeleteObject (m_pImageListTree);	/*delete the image list*/
}

BOOL CLeftView::PreCreateWindow(CREATESTRUCT&amp; cs)
{
	return CTreeView::PreCreateWindow(cs);
}
</code></pre>
<p>Hat aber nicht funktioniert, wenn ich jetzt in CLeftView CTreeView in CMyTreeView umwandle, krieg ich die Fehlermeldung, dass class CMyTreeView nicht bekannt ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273876</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 26 Apr 2007 11:53:17 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 13:37:32 GMT]]></title><description><![CDATA[<p>Kann mir jemand weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1273992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1273992</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 26 Apr 2007 13:37:32 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 14:42:23 GMT]]></title><description><![CDATA[<p>maRKus23 schrieb:</p>
<blockquote>
<p>Kann mir jemand weiterhelfen?</p>
</blockquote>
<p>Es wird nervend.</p>
<p>Wenn Dein View CLeftView heißt, dann müsstest Du PreCreateWindow in den CLeftView einbauen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1274043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1274043</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 26 Apr 2007 14:42:23 GMT</pubDate></item><item><title><![CDATA[Reply to TreeView in SplittedWindow darstellen on Thu, 26 Apr 2007 14:53:24 GMT]]></title><description><![CDATA[<p>Genau das ist ja mein Problem, das ich nicht weiß wie ich das einbauen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1274051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1274051</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 26 Apr 2007 14:53:24 GMT</pubDate></item></channel></rss>