<?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[Button ohne Assisetent erstellen]]></title><description><![CDATA[<p>Guten Morgen leute! Hab da mal eine frage. Wie erstelle ich ohne den Assistenten einen Button? Bei wxWidgets funktioniert es super. Aber bei der MFC komm ich einfach nicht dahinter! Was muss ich alles machen? Muss ich da die Klasse CButton vererben oder kann ich es als zugrifsrecht private erstellen? Den bei wxWidgets geht das so! Danke im voraus für eure Hilfe!</p>
<p>Lg. BlackFalcon</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/203679/button-ohne-assisetent-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Apr 2026 10:52:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/203679.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Jan 2008 09:14:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button ohne Assisetent erstellen on Fri, 25 Jan 2008 09:14:23 GMT]]></title><description><![CDATA[<p>Guten Morgen leute! Hab da mal eine frage. Wie erstelle ich ohne den Assistenten einen Button? Bei wxWidgets funktioniert es super. Aber bei der MFC komm ich einfach nicht dahinter! Was muss ich alles machen? Muss ich da die Klasse CButton vererben oder kann ich es als zugrifsrecht private erstellen? Den bei wxWidgets geht das so! Danke im voraus für eure Hilfe!</p>
<p>Lg. BlackFalcon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1443263</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1443263</guid><dc:creator><![CDATA[BlackFalcon]]></dc:creator><pubDate>Fri, 25 Jan 2008 09:14:23 GMT</pubDate></item><item><title><![CDATA[Reply to Button ohne Assisetent erstellen on Fri, 25 Jan 2008 11:12:33 GMT]]></title><description><![CDATA[<p>instanz erstellen:<br />
CButton _newButton;</p>
<p>konstuieren<br />
_newButton.Create(...)</p>
<p>fertig</p>
<p>brauchst da nichts erben wenn du einfach nur ein button erstellen willst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1443334</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1443334</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Fri, 25 Jan 2008 11:12:33 GMT</pubDate></item><item><title><![CDATA[Reply to Button ohne Assisetent erstellen on Fri, 25 Jan 2008 11:53:36 GMT]]></title><description><![CDATA[<p>Hab ich schon probiert in meiner Main Klasse die ich so erstellt habe!</p>
<pre><code>class CMainWin : public CFrameWnd
{
private:
	CButton m_Button;
public:
	CMainWin ();
	~CMainWin ();
};
</code></pre>
<p>Was ist eine Instanz? Ich meine erstellen kann es schon aber angezeigt wird der Button leider nicht und den Linker hab ich auch richtig eingestellt! Danke trotzdem für die schnelle Antwort!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1443355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1443355</guid><dc:creator><![CDATA[BlackFalcon]]></dc:creator><pubDate>Fri, 25 Jan 2008 11:53:36 GMT</pubDate></item><item><title><![CDATA[Reply to Button ohne Assisetent erstellen on Mon, 28 Jan 2008 09:24:16 GMT]]></title><description><![CDATA[<p>Hier noch einmal alles damit keine Missverständnisse entstehen!</p>
<pre><code class="language-cpp">#include &lt;afxwin.h&gt;

class CTestApp : public CWinApp
{
public:
	virtual BOOL InitInstance();
};

class CMainWin : public CFrameWnd
{
public:
	CMainWin ();
	~CMainWin ();
};

#include &quot;CTestApp.h&quot;

CTestApp mytestapp;

BOOL CTestApp::InitInstance ()
{
	m_pMainWnd = new CMainWin;
	m_pMainWnd-&gt;ShowWindow (m_nCmdShow);
	m_pMainWnd-&gt;UpdateWindow ();
	return TRUE;
}

CMainWin::CMainWin ()
{
	LPCTSTR reg = AfxRegisterWndClass (CS_VREDRAW | CS_HREDRAW, LoadCursor (NULL, IDC_ARROW), 
		reinterpret_cast&lt;HBRUSH&gt;(::GetStockObject (BLACK_BRUSH)));
	CreateEx (0, reg, _T (&quot;TestApplication&quot;), WS_OVERLAPPEDWINDOW, 0, 0, 1024, 768, NULL, NULL, NULL);
	m_Button.Create (_T (&quot;Schließen&quot;), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect (10, 10, 100, 50), NULL, 1); // Hier hab ich pParentWnd mit den Methoden GetParent und GetParentWnd Initialisiert aber nichts tut sich
}

CMainWin::~CMainWin ()
{

}
</code></pre>
<p>Mach ich da etwas falsch? Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444870</guid><dc:creator><![CDATA[BlackFalcon]]></dc:creator><pubDate>Mon, 28 Jan 2008 09:24:16 GMT</pubDate></item><item><title><![CDATA[Reply to Button ohne Assisetent erstellen on Mon, 28 Jan 2008 10:35:10 GMT]]></title><description><![CDATA[<p>m_Button.Create benötigt <strong>this</strong> als Elternfenster, denn der Button liegt ja m CMainWin!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444919</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444919</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 28 Jan 2008 10:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to Button ohne Assisetent erstellen on Mon, 28 Jan 2008 12:31:16 GMT]]></title><description><![CDATA[<p>Danke jetzt funktioniert es ich glaub ich muss im Buch diese Stelle noch mal lesen. Eine Frage hätte ich da noch! Geht das auch gleich mit Editfelder, Radiobutton etc. gleich?</p>
<p>Lg. BlackFalcon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1445023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1445023</guid><dc:creator><![CDATA[BlackFalcon]]></dc:creator><pubDate>Mon, 28 Jan 2008 12:31:16 GMT</pubDate></item><item><title><![CDATA[Reply to Button ohne Assisetent erstellen on Mon, 28 Jan 2008 17:13:18 GMT]]></title><description><![CDATA[<p>Ja!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1445205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1445205</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 28 Jan 2008 17:13:18 GMT</pubDate></item><item><title><![CDATA[Reply to Button ohne Assisetent erstellen on Mon, 28 Jan 2008 18:03:01 GMT]]></title><description><![CDATA[<p>Cool Danke! Lg. BlackFalcon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1445232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1445232</guid><dc:creator><![CDATA[BlackFalcon]]></dc:creator><pubDate>Mon, 28 Jan 2008 18:03:01 GMT</pubDate></item></channel></rss>