<?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[MessageBox]]></title><description><![CDATA[<p>habe ein kleines problem bei meiner messagebox, dass ich gerne gelöst haben möchte:<br />
wenn ich bei meinem button auf Ja oder Nein drücke, wird immer die anwendung geschlossen, kann mir jemand bei der lösung weiter helfen?<br />
hier mein code:</p>
<pre><code>void CDemoDlg::OnBeenden() 
{
	// TODO: Code für die Behandlungsroutine der Steuerelement-Benachrichtigung hier einfügen
	CDialog::OnOK();

	int iGedrueckt;
	iGedrueckt=MessageBox(&quot;Wirklich beenden?&quot;, &quot;Programm beenden&quot;,MB_YESNO|MB_ICONQUESTION);
	switch(iGedrueckt)
	{
	case IDYES:
		OnOK();
		break;
	case IDNO:
		break;
	}
}
</code></pre>
<p>habe schon einiges probiert, hatte keinen erfolg, dabei kann es nur wieder ein kleiner denkfehler sein,</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/168852/messagebox</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 02:42:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/168852.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Dec 2006 17:31:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MessageBox on Thu, 28 Dec 2006 17:31:10 GMT]]></title><description><![CDATA[<p>habe ein kleines problem bei meiner messagebox, dass ich gerne gelöst haben möchte:<br />
wenn ich bei meinem button auf Ja oder Nein drücke, wird immer die anwendung geschlossen, kann mir jemand bei der lösung weiter helfen?<br />
hier mein code:</p>
<pre><code>void CDemoDlg::OnBeenden() 
{
	// TODO: Code für die Behandlungsroutine der Steuerelement-Benachrichtigung hier einfügen
	CDialog::OnOK();

	int iGedrueckt;
	iGedrueckt=MessageBox(&quot;Wirklich beenden?&quot;, &quot;Programm beenden&quot;,MB_YESNO|MB_ICONQUESTION);
	switch(iGedrueckt)
	{
	case IDYES:
		OnOK();
		break;
	case IDNO:
		break;
	}
}
</code></pre>
<p>habe schon einiges probiert, hatte keinen erfolg, dabei kann es nur wieder ein kleiner denkfehler sein,</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199098</guid><dc:creator><![CDATA[oldi]]></dc:creator><pubDate>Thu, 28 Dec 2006 17:31:10 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Thu, 28 Dec 2006 17:49:27 GMT]]></title><description><![CDATA[<p>Mach mal das &quot;CDialog::OnOK();&quot; raus...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199107</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199107</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 28 Dec 2006 17:49:27 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Thu, 28 Dec 2006 17:58:15 GMT]]></title><description><![CDATA[<p>dann funktioniert im button, egal welche möglichkeit ich anklicke, das Nein. d.h. es wird die anwendung bei Ja nicht beendet,<br />
danke vorerst</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199110</guid><dc:creator><![CDATA[oldi]]></dc:creator><pubDate>Thu, 28 Dec 2006 17:58:15 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Thu, 28 Dec 2006 18:19:26 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void CDemoDlg::OnBeenden(void)
{
    int nResult = MessageBox(_T(&quot;Wirklich beenden?&quot;), NULL, MB_YESNO | MB_ICONQUESTION);
    if (nResult != IDYES)
        return;

    CDialog::OnOK();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1199120</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199120</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 28 Dec 2006 18:19:26 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Thu, 28 Dec 2006 18:27:50 GMT]]></title><description><![CDATA[<p>danke (D)Evil, funktioniert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199125</guid><dc:creator><![CDATA[oldi]]></dc:creator><pubDate>Thu, 28 Dec 2006 18:27:50 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Thu, 28 Dec 2006 18:43:28 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<pre><code class="language-cpp">void CDemoDlg::OnBeenden(void)
{
    int nResult = MessageBox(_T(&quot;Wirklich beenden?&quot;), NULL, MB_YESNO | MB_ICONQUESTION);
    if (nResult != IDYES)
        return;

    CDialog::OnOK();
}
</code></pre>
</blockquote>
<p>Hmm, ich frag mich, was da der Unterschied zu meiner Variante ist... naja, ist auch egal... Einen guten Rutsch... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199135</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199135</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 28 Dec 2006 18:43:28 GMT</pubDate></item><item><title><![CDATA[Reply to MessageBox on Thu, 28 Dec 2006 19:05:38 GMT]]></title><description><![CDATA[<p>Hehe .. sein Code war halt nicht sonderlich sinnig...<br />
aber Jochen ... hmm eigentlich nur das CDialog::OnOK() und nicht einfach OnOK() aber obs nen Unterschied macht? nein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1199144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1199144</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 28 Dec 2006 19:05:38 GMT</pubDate></item></channel></rss>