<?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 klappt manchmal&#x2F;manchmal nicht]]></title><description><![CDATA[<p>Ich versuche so ein Fenster zu schließen:</p>
<pre><code class="language-cpp">PostMessage (a,WM_CLOSE, 0, 0);
</code></pre>
<p>Ich ermittel den Handle via &quot;FindWindow&quot;,lasse dann den Handle in a schreiben.<br />
Der Handle des Fensters stimmt.<br />
Nur leider wird nur manchmal das Fenster geschlossen nicht immer.<br />
Was ist den jetzt an dieser Code Zeile verkehrt?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/189102/wm_close-klappt-manchmal-manchmal-nicht</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 14:39:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/189102.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Aug 2007 14:12:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WM_Close klappt manchmal&#x2F;manchmal nicht on Wed, 08 Aug 2007 14:12:29 GMT]]></title><description><![CDATA[<p>Ich versuche so ein Fenster zu schließen:</p>
<pre><code class="language-cpp">PostMessage (a,WM_CLOSE, 0, 0);
</code></pre>
<p>Ich ermittel den Handle via &quot;FindWindow&quot;,lasse dann den Handle in a schreiben.<br />
Der Handle des Fensters stimmt.<br />
Nur leider wird nur manchmal das Fenster geschlossen nicht immer.<br />
Was ist den jetzt an dieser Code Zeile verkehrt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1340862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340862</guid><dc:creator><![CDATA[WMB]]></dc:creator><pubDate>Wed, 08 Aug 2007 14:12:29 GMT</pubDate></item><item><title><![CDATA[Reply to WM_Close klappt manchmal&#x2F;manchmal nicht on Wed, 08 Aug 2007 14:54:22 GMT]]></title><description><![CDATA[<p>Nimm statt PostMessage (a,WM_CLOSE,0,0) lieber SendMessage (a,WM_CLOSE,0,0).<br />
Im Gegensatz zu PostMessage () kehrt SendMessage () erst zurück, wenn das Fenster die Botschaft auch verarbeitet hat.<br />
<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/1340893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340893</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 08 Aug 2007 14:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to WM_Close klappt manchmal&#x2F;manchmal nicht on Thu, 09 Aug 2007 07:45:45 GMT]]></title><description><![CDATA[<p>du könntest eventuell auch WM_QUIT oder WM_DESTROY versuchen, und wie merker schon geschrieben hat, verwende sendmessage()</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341240</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 09 Aug 2007 07:45:45 GMT</pubDate></item><item><title><![CDATA[Reply to WM_Close klappt manchmal&#x2F;manchmal nicht on Thu, 09 Aug 2007 14:12:41 GMT]]></title><description><![CDATA[<p>SendMessage birgt aber auch das Gefahrenpotential, das wenn die andere Anwendung hängt, tut Deine das auch. Evtl. mal mit SendMessage, WM_SYSCOMMAND und SC_CLOSE probiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341586</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 09 Aug 2007 14:12:41 GMT</pubDate></item></channel></rss>