<?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[Ein Child-Fenster erstellen ???]]></title><description><![CDATA[<p>Ich hab folgendes Problem:<br />
Ich möchte in meinem Programm zuerst das Hautpfenster(CMainWnd von CFrameWnd)<br />
erstellen und dann ein ChildFenster m_wndFolder (CFolderWnd von CWnd) erstellen. Leider ist das Fenster deaktiviert und die Ressourece wird auch nicht geladen... An was liegts???<br />
Hier der Code:</p>
<pre><code class="language-cpp">//In der Startfunktion:
static const UINT Children_Styles=WS_CHILD | WS_OVERLAPPEDWINDOW | WS_VISIBLE;

	m_hIcon=AfxGetApp()-&gt;LoadIcon(IDR_MAINFRAME);//Icon

	CString ClassName=AfxRegisterWndClass(NULL,NULL,CreateSolidBrush(RGB(144,144,144)),m_hIcon);//FensterKlasse
	BOOL erg=Create(ClassName,&quot;FTP&quot;);
	//ClientRect zum Berechnen:
	CRect rCR;
	GetClientRect(rCR);
		//Weitere Aufgaben:
	//-Ordner und Dateienfenster:
		CRect rFolder;
		rFolder.CopyRect(rCR);
		//rFolder.bottom-=rCR.Width()/3;
		rFolder.SetRect(0,0,100,100);
		m_wndFolder.Create(NULL,&quot;Dateien&quot;,Children_Styles,rFolder,this,IDD_FOLDER);	
		//m_wndFolder.CreateEx(WS_EX_MDICHILD,NULL,&quot;dd&quot;,Children_Styles,rFolder,this,IDD_FOLDER);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/67263/ein-child-fenster-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 16:26:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/67263.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Mar 2004 17:30:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ein Child-Fenster erstellen ??? on Sat, 06 Mar 2004 17:30:54 GMT]]></title><description><![CDATA[<p>Ich hab folgendes Problem:<br />
Ich möchte in meinem Programm zuerst das Hautpfenster(CMainWnd von CFrameWnd)<br />
erstellen und dann ein ChildFenster m_wndFolder (CFolderWnd von CWnd) erstellen. Leider ist das Fenster deaktiviert und die Ressourece wird auch nicht geladen... An was liegts???<br />
Hier der Code:</p>
<pre><code class="language-cpp">//In der Startfunktion:
static const UINT Children_Styles=WS_CHILD | WS_OVERLAPPEDWINDOW | WS_VISIBLE;

	m_hIcon=AfxGetApp()-&gt;LoadIcon(IDR_MAINFRAME);//Icon

	CString ClassName=AfxRegisterWndClass(NULL,NULL,CreateSolidBrush(RGB(144,144,144)),m_hIcon);//FensterKlasse
	BOOL erg=Create(ClassName,&quot;FTP&quot;);
	//ClientRect zum Berechnen:
	CRect rCR;
	GetClientRect(rCR);
		//Weitere Aufgaben:
	//-Ordner und Dateienfenster:
		CRect rFolder;
		rFolder.CopyRect(rCR);
		//rFolder.bottom-=rCR.Width()/3;
		rFolder.SetRect(0,0,100,100);
		m_wndFolder.Create(NULL,&quot;Dateien&quot;,Children_Styles,rFolder,this,IDD_FOLDER);	
		//m_wndFolder.CreateEx(WS_EX_MDICHILD,NULL,&quot;dd&quot;,Children_Styles,rFolder,this,IDD_FOLDER);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/474575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/474575</guid><dc:creator><![CDATA[XCooperation]]></dc:creator><pubDate>Sat, 06 Mar 2004 17:30:54 GMT</pubDate></item><item><title><![CDATA[Reply to Ein Child-Fenster erstellen ??? on Sun, 07 Mar 2004 13:30:18 GMT]]></title><description><![CDATA[<p>OK, jetzt hab ichs mal mit der Klasse CMDIFrameWnd probiert.<br />
Jetzt kommt aber bei folgender Stelle ein &quot;Assertion failed&quot;:</p>
<pre><code class="language-cpp">CMainWnd* wnd= new CMainWnd;
wnd-&gt;Create(NULL,&quot;xy&quot;,WS_OVERLAPPEDWINDOW,CMDIFrameWnd::rectDefault,NULL);
</code></pre>
<p>Wieso?????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/475012</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/475012</guid><dc:creator><![CDATA[XCooperation]]></dc:creator><pubDate>Sun, 07 Mar 2004 13:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to Ein Child-Fenster erstellen ??? on Mon, 15 Mar 2004 16:21:21 GMT]]></title><description><![CDATA[<p>Ok, jetzt funktionierts einigermaßen, nur die Dialogressource lädt er nicht...<br />
Hab folgenden Code:(In InitInstance)</p>
<pre><code class="language-cpp">CMainWnd* wnd= new CMainWnd;//Von CMDIFrameWnd
	CRect r;
	r.SetRect(10,10,100,100);

	wnd-&gt;Create(NULL,&quot;hallo&quot;,WS_OVERLAPPEDWINDOW,r);
	wnd-&gt;ShowWindow(SW_SHOW);

	m_pMainWnd = wnd;

	wnd-&gt;CreateNewChild(RUNTIME_CLASS,FolderWnd),IDD_FOLDER);
//Hier Ressource laden, macht er aber nicht, nur ein weißes Fenster erscheint...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/481035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/481035</guid><dc:creator><![CDATA[XCooperation]]></dc:creator><pubDate>Mon, 15 Mar 2004 16:21:21 GMT</pubDate></item></channel></rss>