<?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[Apllication-&amp;gt;MessageBox]]></title><description><![CDATA[<p>Hallo,<br />
Wieso schliesst sich die MessageBox nicht??? - Wenn ich auch Nein drücke passiert nix! - Wenn ich JA drücke schliesst sich das Programm problemlos<br />
nur wenn ich es nicht schliessen will dann net warum ???</p>
<pre><code>void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &amp;Action)
{
int Knopf;

Knopf = Application-&gt;MessageBox (&quot;Möchten Sie das Programm wirklich beenden ?&quot;, &quot;&quot;, 4 + 32);

if (Knopf != IDYES)
Close();

}
</code></pre>
<p>Ich weiss nicht wie ich den Code sonst schreiben soll....</p>
<p>MFG<br />
TM</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/176078/apllication-gt-messagebox</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 04:58:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176078.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Mar 2007 12:34:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Sat, 17 Mar 2007 12:34:01 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Wieso schliesst sich die MessageBox nicht??? - Wenn ich auch Nein drücke passiert nix! - Wenn ich JA drücke schliesst sich das Programm problemlos<br />
nur wenn ich es nicht schliessen will dann net warum ???</p>
<pre><code>void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &amp;Action)
{
int Knopf;

Knopf = Application-&gt;MessageBox (&quot;Möchten Sie das Programm wirklich beenden ?&quot;, &quot;&quot;, 4 + 32);

if (Knopf != IDYES)
Close();

}
</code></pre>
<p>Ich weiss nicht wie ich den Code sonst schreiben soll....</p>
<p>MFG<br />
TM</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247187</guid><dc:creator><![CDATA[TM]]></dc:creator><pubDate>Sat, 17 Mar 2007 12:34:01 GMT</pubDate></item><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Sat, 17 Mar 2007 12:51:46 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>ich habe das so gemacht bei nein passiert nix bei ja schliesst sich das Programm hoffe dir damit geholfen zu haben <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>
<p>{<br />
int wert;<br />
wert = Application-&gt;MessageBoxA(&quot;Möchten Sie das Programm wirklich beenden?&quot;,&quot;Achtung&quot;,4+64);<br />
if (wert ==6)<br />
Close();<br />
}</p>
<p>bye malcolm199</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247193</guid><dc:creator><![CDATA[malcolm199]]></dc:creator><pubDate>Sat, 17 Mar 2007 12:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Sat, 17 Mar 2007 13:09:05 GMT]]></title><description><![CDATA[<p>Hallo,<br />
danke für die schnelle Antwort, aber das Problem besteht weiterhin wenn ich auf &quot;nein&quot; drücke passiert überhaupt nichts... - Ich kann noch nicht einmal ins programm zurück kehren!</p>
<p>Wie könnte ich den Code schreiben, dass bei &quot;Nein&quot; die MessageBox sich schliesst und man ins Programm zurück kommt...</p>
<p>MFG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247202</guid><dc:creator><![CDATA[TM]]></dc:creator><pubDate>Sat, 17 Mar 2007 13:09:05 GMT</pubDate></item><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Sat, 17 Mar 2007 13:54:15 GMT]]></title><description><![CDATA[<p>Hallo TM,<br />
es ist nicht so, daß sich deine MessageBox nicht schließen läßt.<br />
Dein Code sieht so aus, daß du die MessageBox in der OnClose Funktion deiner Funktion entstehen läßt.<br />
Wird irgendetwas anderes gedrückt als was IDYES liefert, so gibst du den Befehl Close(), was wiederum dein OnClose Ereignis auslöst, so daß die MessageBox ein weiteres mal erscheint. So eine Art Endlosschleife.<br />
Nutze einfach das OnCloseQuery Ereignis und CanClose, dann hast du den gewünschten Effekt.</p>
<pre><code>void __fastcall TForm1::FormCloseQuery(TObject *Sender, bool &amp;CanClose)
{
int Knopf;

Knopf = Application-&gt;MessageBox (&quot;Möchten Sie das Programm wirklich beenden ?&quot;, &quot;&quot;, 4 + 32);

if (Knopf != IDYES)
CanClose = false;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1247228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247228</guid><dc:creator><![CDATA[W. Posur]]></dc:creator><pubDate>Sat, 17 Mar 2007 13:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Sat, 17 Mar 2007 14:21:17 GMT]]></title><description><![CDATA[<p>Hallo,<br />
danke für die schnelle Hilfe! Wenn ich jetzt mein Programm (Name: Aggressator)<br />
compilieren will kommt folgende Meldung:</p>
<p>[Linker Fehler] Unresolved external '__fastcall TForm1::FormClose(System::TObject *, Forms::TCloseAction&amp;)' referenced from C:\DOKUMENTE UND EINSTELLUNGEN\TIM MACK\DESKTOP\DEVELOPMENTS\PRIVAT\AGGRESSATOR.OBJ</p>
<p>MFG<br />
TM</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247262</guid><dc:creator><![CDATA[TM]]></dc:creator><pubDate>Sat, 17 Mar 2007 14:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Sat, 17 Mar 2007 14:27:14 GMT]]></title><description><![CDATA[<p>Was soll eigentlich die ganze Zeit das 4 + 32 oder 4 + 64? Es gibt doch wunderbare Konstanten in der Art:<br />
MB_YESNO oder MB_ICONQUESTION usw.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247269</guid><dc:creator><![CDATA[Christian Sonder]]></dc:creator><pubDate>Sat, 17 Mar 2007 14:27:14 GMT</pubDate></item><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Sat, 17 Mar 2007 14:26:39 GMT]]></title><description><![CDATA[<blockquote>
<p>Unresolved external '__fastcall TForm1::FormClose(System::TObject *, Forms::TCloseAction&amp;)' referenced from C:\DOKUMENTE UND EINSTELLUNGEN\TIM MACK\DESKTOP\DEVELOPMENTS\PRIVAT\AGGRESSATOR.OBJ</p>
</blockquote>
<p>Kann es sein, daß Du die Methode con Hand gelöscht hast, nicht jedoch in der .h?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247270</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247270</guid><dc:creator><![CDATA[Christian Sonder]]></dc:creator><pubDate>Sat, 17 Mar 2007 14:26:39 GMT</pubDate></item><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Sat, 17 Mar 2007 23:27:27 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>danke für die Hilfe hat alles geklappt...<br />
Ja, ich hab vergessen die Methode aus der .h zu löschen (FormClose).</p>
<p>MFG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1247533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1247533</guid><dc:creator><![CDATA[TM]]></dc:creator><pubDate>Sat, 17 Mar 2007 23:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to Apllication-&amp;gt;MessageBox on Mon, 19 Mar 2007 08:37:29 GMT]]></title><description><![CDATA[<p>Das mit dem Löschen einer Methode geht im Builder eigentlich ziemlich elegant: Einfach den gesamten Code innerhalb der Methode löschen und nur das Gerüst stehenlassen. Beim nächsten Kompilieren ist die Methode dann verschwunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248159</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248159</guid><dc:creator><![CDATA[W. Posur]]></dc:creator><pubDate>Mon, 19 Mar 2007 08:37:29 GMT</pubDate></item></channel></rss>