<?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 in Dialogbox einfügen]]></title><description><![CDATA[<p>Hallo, ich habe eine dialogbox in der ich gerne 2 buttons einfügen möchte. leider finde ich keine beschreibung die auf mein vorhandenes dialogfenster passt.</p>
<pre><code>// Mesage handler for the About box.
LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{

	switch (message)
	{
		case WM_INITDIALOG:

		case WM_COMMAND:
			if ((LOWORD(wParam) == IDOK))
			{
				EndDialog(hDlg, LOWORD(wParam));
				return TRUE;
			}
			break;
	}
    return FALSE;
}
</code></pre>
<p>wie bekomme ich da jetzt einen button rein ?</p>
<p>ich hoffe ihr könnt mir helfen.</p>
<p>vielen dank euch !</p>
<p>lg vesna</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/220757/button-in-dialogbox-einfügen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 09:38:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/220757.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Aug 2008 14:17:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 14:17:48 GMT]]></title><description><![CDATA[<p>Hallo, ich habe eine dialogbox in der ich gerne 2 buttons einfügen möchte. leider finde ich keine beschreibung die auf mein vorhandenes dialogfenster passt.</p>
<pre><code>// Mesage handler for the About box.
LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{

	switch (message)
	{
		case WM_INITDIALOG:

		case WM_COMMAND:
			if ((LOWORD(wParam) == IDOK))
			{
				EndDialog(hDlg, LOWORD(wParam));
				return TRUE;
			}
			break;
	}
    return FALSE;
}
</code></pre>
<p>wie bekomme ich da jetzt einen button rein ?</p>
<p>ich hoffe ihr könnt mir helfen.</p>
<p>vielen dank euch !</p>
<p>lg vesna</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568329</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568329</guid><dc:creator><![CDATA[vesna]]></dc:creator><pubDate>Wed, 20 Aug 2008 14:17:48 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 14:27:58 GMT]]></title><description><![CDATA[<p>Normal kannst Du im Resourcenscript schon Buttons festlegen. Sonst unter WM_INITDIALOG mit CreateWindow, und als Parent den Dialog angeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568339</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568339</guid><dc:creator><![CDATA[Elektronix]]></dc:creator><pubDate>Wed, 20 Aug 2008 14:27:58 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 14:38:42 GMT]]></title><description><![CDATA[<p>habs jetrzt so gemacht :</p>
<pre><code>case WM_INITDIALOG:

	static HWND hButton;

					hButton =	CreateWindow(_T(&quot;button&quot;), _T(&quot;Knopf&quot;), WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, hDlg, NULL,((LPCREATESTRUCT) lParam)-&gt;hInstance, NULL);

		case WM_COMMAND:
			if ((LOWORD(wParam) == IDOK))
			{
				EndDialog(hDlg, LOWORD(wParam));
				return TRUE;
			}
			break;
</code></pre>
<p>soweit so gut. es werden keine fehler angezeigt. aber auch keine buttons.</p>
<p>woran kann das liegen ??</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568354</guid><dc:creator><![CDATA[vesna]]></dc:creator><pubDate>Wed, 20 Aug 2008 14:38:42 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 14:52:57 GMT]]></title><description><![CDATA[<p>hast du da bei der Fensterhöhe und Breite 0 eingetragen?<br />
Dann kann ja nichts kommen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568367</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 20 Aug 2008 14:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 14:54:57 GMT]]></title><description><![CDATA[<p>Vielleicht liegt es an den Parametern in CreateWindow()<br />
Du hast dort 0, 0, 0, 0 stehen. Diese Parameter stehen für:<br />
xPos<br />
yPos<br />
xSize<br />
ySize<br />
Glaube ich jedenfalls.<br />
Mit diesen Parametern kriegst du einen Button <strong>der Grösse 0 / 0</strong> in der linken oberen Ecke deines Anwendungsbereichs.... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568371</guid><dc:creator><![CDATA[Dave__R]]></dc:creator><pubDate>Wed, 20 Aug 2008 14:54:57 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 15:02:08 GMT]]></title><description><![CDATA[<p>auch geändert kommt nichts.. hab ich was vergessen ??</p>
<pre><code>LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{

	static HWND hButton;

	switch (message)
	{
		case WM_INITDIALOG:

				hButton = CreateWindow(_T(&quot;button&quot;), _T(&quot;Knopf&quot;), WS_CHILD | WS_VISIBLE , 10, 10, 10, 10, hDlg, NULL,((LPCREATESTRUCT) lParam)-&gt;hInstance, NULL);

		case WM_COMMAND:
			if ((LOWORD(wParam) == IDOK))
			{
				EndDialog(hDlg, LOWORD(wParam));
				return TRUE;
			}
			break;
	}
    return FALSE;
}
</code></pre>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568376</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568376</guid><dc:creator><![CDATA[vesna]]></dc:creator><pubDate>Wed, 20 Aug 2008 15:02:08 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 15:10:22 GMT]]></title><description><![CDATA[<p>bist du sicher das er nicht da ist?<br />
10 auf 10 Pixel ist schon sehr klein. Mach lieber mal 100.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568380</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 20 Aug 2008 15:10:22 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 15:09:43 GMT]]></title><description><![CDATA[<p>also habs auf 100, aber sehe trotzdem nichts. der dialog wird auch gestartet. aber es ist nur kein button drin. muss ich woanders noch was einstellen oder verändern? in der *.rc datei vielleicht?</p>
<p>danke euch !!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568381</guid><dc:creator><![CDATA[vesna]]></dc:creator><pubDate>Wed, 20 Aug 2008 15:09:43 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 15:10:13 GMT]]></title><description><![CDATA[<p>mach mal bei den Styles noch BS_DEFPUSHBUTTON oder BS_PUSHBUTTON</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568383</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 20 Aug 2008 15:10:13 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 15:16:11 GMT]]></title><description><![CDATA[<p>ne passiert auch nichts..<br />
ich habe mal in meine *.rc datei geschaut. da steht schon was von diesem dialog. darüber kann ich auch text eintragen. aber irgednwie keine buttons.</p>
<p>hier ein auszug:</p>
<pre><code>/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 125, 71
STYLE DS_MODALFRAME | WS_POPUP 
EXSTYLE 0x80000000L
CAPTION &quot;Mode&quot;
FONT 8, &quot;System&quot;
BEGIN
     LTEXT           &quot;Copyright (C) 2008&quot;,IDC_STATIC,38,25,70,8
END
</code></pre>
<p>also das copyright steht dann drin.<br />
kann ich darüber irgednwie einen button hinzufügen ??</p>
<p>danke</p>
<p>vesna</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568388</guid><dc:creator><![CDATA[vesna]]></dc:creator><pubDate>Wed, 20 Aug 2008 15:16:11 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 15:20:38 GMT]]></title><description><![CDATA[<p>normal macht man das nicht per Hand sondern mit dem Ressource Editor vom Visual Studio...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568391</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 20 Aug 2008 15:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 15:26:33 GMT]]></title><description><![CDATA[<p>also manuell geht es nicht?</p>
<p>das createwindow müsste doch eigentlich funktionieren oder nicht ? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title="=/"
      alt="😕"
    /></p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568401</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568401</guid><dc:creator><![CDATA[vesna]]></dc:creator><pubDate>Wed, 20 Aug 2008 15:26:33 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 15:29:23 GMT]]></title><description><![CDATA[<p>kannst du nochmal den Code posten wie er jetzt aussieht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568404</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 20 Aug 2008 15:29:23 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Wed, 20 Aug 2008 17:43:30 GMT]]></title><description><![CDATA[<p>Also in dem Fall kannst du in deinem rc-Skript die folgende Zeile einfügen:<br />
PUSHBUTTON &quot;Knopf&quot;, IDC_BUTTON, 10, 10, 100, 20</p>
<p>und dann in der resource.h:</p>
<p>#define IDC_BUTTON 1001</p>
<p>dann solltest du das CreateWindow() aber weglassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568481</guid><dc:creator><![CDATA[Dave__R]]></dc:creator><pubDate>Wed, 20 Aug 2008 17:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Thu, 21 Aug 2008 06:28:02 GMT]]></title><description><![CDATA[<p>sehr gut dave <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title="=)"
      alt="🙂"
    /><br />
jetzt seh ich wenigstens schonmal einen button. damit werd ich jetzt weiter rumspielen.</p>
<p>vielen dank !!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568634</guid><dc:creator><![CDATA[vesna]]></dc:creator><pubDate>Thu, 21 Aug 2008 06:28:02 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Thu, 21 Aug 2008 09:21:03 GMT]]></title><description><![CDATA[<p>das sollte man aber nicht machen da reagiert Visual Studio seeeeeeehr schlecht drauf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568754</guid><dc:creator><![CDATA[call EAX]]></dc:creator><pubDate>Thu, 21 Aug 2008 09:21:03 GMT</pubDate></item><item><title><![CDATA[Reply to Button in Dialogbox einfügen on Thu, 21 Aug 2008 12:35:56 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> inwiefern schlecht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1568887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1568887</guid><dc:creator><![CDATA[Dave__R]]></dc:creator><pubDate>Thu, 21 Aug 2008 12:35:56 GMT</pubDate></item></channel></rss>