<?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[Abgeleitete Klasse von CWnd + Childwindow CButton - CButton wird nicht angezeigt]]></title><description><![CDATA[<p>Hallo!<br />
Ich habe mir eine Klasse angelegt, die von CWnd abgeleitet ist. Dieser gebe ich eine Memberinstanz CButton. Bei Create von CWnd erstelle ich den Button! Leider wird mir dieser NICHT angezeigt :(. Woran kann das liegen? Hier mal der Code vom erstellen des CWnds:</p>
<pre><code class="language-cpp">BOOL CTest::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT&amp; rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) 
{

    CString wndclass = AfxRegisterWndClass(CS_DBLCLKS,
        LoadCursor(NULL, IDC_ARROW),
        GetSysColorBrush(COLOR_BTNFACE),
        0);

	lpszWindowName = &quot;Pieces&quot;;

	BOOL bReturn = CWnd::Create(wndclass, lpszWindowName, dwStyle, rect, this, nID, pContext);
	if(!bReturn)
		MessageBox(&quot;window not created&quot;, 0, 0);

	if(!m_button.Create(&quot;Test&quot;, WS_CHILD|
                            WS_VISIBLE, CRect(0, 100, 0, 100), pParentWnd, 0))
							MessageBox(&quot;button nicht erstellt&quot;,0 ,0);

	return bReturn;
}
</code></pre>
<p>Beide MessageBoxes werden NICHT aufgerufen! Bin für eure Hilfe wirklich sehr dankbar, ist verdammt DRINGEND!</p>
<p>compiler</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/65384/abgeleitete-klasse-von-cwnd-childwindow-cbutton-cbutton-wird-nicht-angezeigt</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 07:54:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/65384.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Feb 2004 17:31:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Abgeleitete Klasse von CWnd + Childwindow CButton - CButton wird nicht angezeigt on Wed, 18 Feb 2004 17:36:03 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich habe mir eine Klasse angelegt, die von CWnd abgeleitet ist. Dieser gebe ich eine Memberinstanz CButton. Bei Create von CWnd erstelle ich den Button! Leider wird mir dieser NICHT angezeigt :(. Woran kann das liegen? Hier mal der Code vom erstellen des CWnds:</p>
<pre><code class="language-cpp">BOOL CTest::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT&amp; rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) 
{

    CString wndclass = AfxRegisterWndClass(CS_DBLCLKS,
        LoadCursor(NULL, IDC_ARROW),
        GetSysColorBrush(COLOR_BTNFACE),
        0);

	lpszWindowName = &quot;Pieces&quot;;

	BOOL bReturn = CWnd::Create(wndclass, lpszWindowName, dwStyle, rect, this, nID, pContext);
	if(!bReturn)
		MessageBox(&quot;window not created&quot;, 0, 0);

	if(!m_button.Create(&quot;Test&quot;, WS_CHILD|
                            WS_VISIBLE, CRect(0, 100, 0, 100), pParentWnd, 0))
							MessageBox(&quot;button nicht erstellt&quot;,0 ,0);

	return bReturn;
}
</code></pre>
<p>Beide MessageBoxes werden NICHT aufgerufen! Bin für eure Hilfe wirklich sehr dankbar, ist verdammt DRINGEND!</p>
<p>compiler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/462366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/462366</guid><dc:creator><![CDATA[Compiler]]></dc:creator><pubDate>Wed, 18 Feb 2004 17:36:03 GMT</pubDate></item><item><title><![CDATA[Reply to Abgeleitete Klasse von CWnd + Childwindow CButton - CButton wird nicht angezeigt on Wed, 18 Feb 2004 17:40:48 GMT]]></title><description><![CDATA[<p>Sorry, mein Fehler, das Handle war falsch, kann deletet werden. Danke compiler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/462385</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/462385</guid><dc:creator><![CDATA[Compiler]]></dc:creator><pubDate>Wed, 18 Feb 2004 17:40:48 GMT</pubDate></item></channel></rss>