<?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[WM_CLOSE abfangen; wohin mit case-anweisung?]]></title><description><![CDATA[<p>Ich möchte beim Schließen eines Programms, also wenn WM_CLOSE gesendet wird, eine abfrage machen, ob der Benutzer das Program wirklich beenden will. Ich hab schon in anderen Posts gelesen, dass das ungefähr so geht:</p>
<pre><code class="language-cpp">case WM_CLOSE:
    int abfrage = Application-&gt;MessageBox(&quot;Möchten Sie das Programm wirklich beenden?&quot;,&quot;Wirklich beenden?&quot;,36);
    if(abfrage == IDNO){
        return 0;
    }
    else{
        PostQuitMessage(0);
    }
</code></pre>
<p>Nur leider weis ich nicht, in welche Datei an welche Stelle ich das schreiben muss.</p>
<p>Ich benutze den Borland-Builder 1 Standard.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/193714/wm_close-abfangen-wohin-mit-case-anweisung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 09:13:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193714.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Sep 2007 21:00:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Fri, 28 Sep 2007 21:00:23 GMT]]></title><description><![CDATA[<p>Ich möchte beim Schließen eines Programms, also wenn WM_CLOSE gesendet wird, eine abfrage machen, ob der Benutzer das Program wirklich beenden will. Ich hab schon in anderen Posts gelesen, dass das ungefähr so geht:</p>
<pre><code class="language-cpp">case WM_CLOSE:
    int abfrage = Application-&gt;MessageBox(&quot;Möchten Sie das Programm wirklich beenden?&quot;,&quot;Wirklich beenden?&quot;,36);
    if(abfrage == IDNO){
        return 0;
    }
    else{
        PostQuitMessage(0);
    }
</code></pre>
<p>Nur leider weis ich nicht, in welche Datei an welche Stelle ich das schreiben muss.</p>
<p>Ich benutze den Borland-Builder 1 Standard.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374660</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374660</guid><dc:creator><![CDATA[*gt*Bocky*lt*]]></dc:creator><pubDate>Fri, 28 Sep 2007 21:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Fri, 28 Sep 2007 21:23:35 GMT]]></title><description><![CDATA[<blockquote>
<p>Bocky&lt; schrieb:<br />
Nur leider weis ich nicht, in welche Datei an welche Stelle ich das schreiben muss.</p>
</blockquote>
<p>Öhm, was hat das mit der Datei zu tun? Das gehört in die WndProc Deines Hauptfensters, in Dein Message-Switch <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/1374664</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374664</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Fri, 28 Sep 2007 21:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Sat, 29 Sep 2007 08:20:07 GMT]]></title><description><![CDATA[<p>Das is ja grad das Porblem: Ich weis nicht, wo sich das WndProc befindet.<br />
In der einen Datei ist das WinMain drin, in der anderen hab ich meinen eigentlichen Quelltext. Aber in keiner der Dateien, die mir der Borland-Builder erstellt, befindet sich eine WndProc bzw. ich finds nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374724</guid><dc:creator><![CDATA[*gt*Bocky*lt*]]></dc:creator><pubDate>Sat, 29 Sep 2007 08:20:07 GMT</pubDate></item><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Sat, 29 Sep 2007 09:50:08 GMT]]></title><description><![CDATA[<p>Dann musst du sie <strong>suchen</strong> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f4a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--light_bulb"
      title=":bulb:"
      alt="💡"
    /></p>
<p>Such nach &quot;lpfnWndProc&quot;, dann wirst du sie schon finden...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374749</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Sat, 29 Sep 2007 09:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Sat, 29 Sep 2007 10:11:06 GMT]]></title><description><![CDATA[<p>ne, da wird gar nichts gefunden.<br />
nur wenn ich nach wndproc suche, findet der was, aber nur in der .obj-datei.</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374754</guid><dc:creator><![CDATA[*gt*Bocky*lt*]]></dc:creator><pubDate>Sat, 29 Sep 2007 10:11:06 GMT</pubDate></item><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Sat, 29 Sep 2007 10:28:41 GMT]]></title><description><![CDATA[<p>Verwendest du ueberhaupt die WinAPI?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374761</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Sat, 29 Sep 2007 10:28:41 GMT</pubDate></item><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Sat, 29 Sep 2007 11:42:47 GMT]]></title><description><![CDATA[<p>hmmmmm.... bin mir nich sicher. Hab nich so viel ahnung davon.</p>
<p>Hab nochma bei den Foren durchgeguckt. Kann auch sein, dass das hier in VLC/CLX (Borland c++ Builder) gehört.</p>
<p>sry <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374787</guid><dc:creator><![CDATA[*gt*Bocky*lt*]]></dc:creator><pubDate>Sat, 29 Sep 2007 11:42:47 GMT</pubDate></item><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Sat, 29 Sep 2007 13:47:43 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &amp;Action)
{
    if(MessageBox(Handle, &quot;Wirklich schließen?&quot;, &quot;&quot;, MB_YESNO | MB_TASKMODAL) == ID_NO)
        Action = caNone;
}
//---------------------------------------------------------------------------
</code></pre>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374863</guid><dc:creator><![CDATA[Rashnok]]></dc:creator><pubDate>Sat, 29 Sep 2007 13:47:43 GMT</pubDate></item><item><title><![CDATA[Reply to WM_CLOSE abfangen; wohin mit case-anweisung? on Sat, 29 Sep 2007 14:33:58 GMT]]></title><description><![CDATA[<p>THX</p>
<p>funzt einwandfrei</p>
<p>DANKE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1374874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1374874</guid><dc:creator><![CDATA[*gt*Bocky*lt*]]></dc:creator><pubDate>Sat, 29 Sep 2007 14:33:58 GMT</pubDate></item></channel></rss>