<?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[PreTranslateMessage und der Schliessbutton [x]]]></title><description><![CDATA[<p>Hallo,</p>
<p>Problem:<br />
Ich möchte wenn mein Hauptfenster (CWinApp-&gt;m_pMainWnd) geschlossen wird gerne noch ein bisserl abschliesenden Code ausführen, dazu habe ich CWInApp::PreTranslateMessage überschrieben. Ich bekomme auch alle möglichen Meldungen nur nicht die die ich haben mag :</p>
<pre><code>BOOL CMyWinApp::PreTranslateMessage(MSG* pMsg)
{
	char msgnr[10];

	switch(pMsg-&gt;message)
	{
	case WM_MOUSEMOVE:
		m_pMainWnd-&gt;SetWindowText(&quot;WM_MOUSEMOVE&quot;);
		break;
	case WM_PAINT:
		m_pMainWnd-&gt;SetWindowText(&quot;WM_PAINT&quot;);
		break;

				/* KOMMT NIE */
	case WM_COMMAND:
	case WM_CLOSE:
	case WM_QUIT:
		AfxMessageBox(&quot;[x]&quot;);
		break;
	default:
		itoa(pMsg-&gt;message, msgnr, 16);
		m_pMainWnd-&gt;SetWindowText(msgnr);
	}

	return CWinApp::PreTranslateMessage(pMsg);
}
</code></pre>
<p>Kann mir jemand sagen woran das liegt ?</p>
<p>Danke !</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/55968/pretranslatemessage-und-der-schliessbutton-x</link><generator>RSS for Node</generator><lastBuildDate>Tue, 02 Jun 2026 03:34:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/55968.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Nov 2003 18:22:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PreTranslateMessage und der Schliessbutton [x] on Thu, 20 Nov 2003 18:22:44 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Problem:<br />
Ich möchte wenn mein Hauptfenster (CWinApp-&gt;m_pMainWnd) geschlossen wird gerne noch ein bisserl abschliesenden Code ausführen, dazu habe ich CWInApp::PreTranslateMessage überschrieben. Ich bekomme auch alle möglichen Meldungen nur nicht die die ich haben mag :</p>
<pre><code>BOOL CMyWinApp::PreTranslateMessage(MSG* pMsg)
{
	char msgnr[10];

	switch(pMsg-&gt;message)
	{
	case WM_MOUSEMOVE:
		m_pMainWnd-&gt;SetWindowText(&quot;WM_MOUSEMOVE&quot;);
		break;
	case WM_PAINT:
		m_pMainWnd-&gt;SetWindowText(&quot;WM_PAINT&quot;);
		break;

				/* KOMMT NIE */
	case WM_COMMAND:
	case WM_CLOSE:
	case WM_QUIT:
		AfxMessageBox(&quot;[x]&quot;);
		break;
	default:
		itoa(pMsg-&gt;message, msgnr, 16);
		m_pMainWnd-&gt;SetWindowText(msgnr);
	}

	return CWinApp::PreTranslateMessage(pMsg);
}
</code></pre>
<p>Kann mir jemand sagen woran das liegt ?</p>
<p>Danke !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/399125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/399125</guid><dc:creator><![CDATA[Rätzelnder]]></dc:creator><pubDate>Thu, 20 Nov 2003 18:22:44 GMT</pubDate></item><item><title><![CDATA[Reply to PreTranslateMessage und der Schliessbutton [x] on Thu, 20 Nov 2003 18:33:04 GMT]]></title><description><![CDATA[<p>Gesendete Nachrichten kommen da nicht an, nur gepostete.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/399134</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/399134</guid><dc:creator><![CDATA[darkness]]></dc:creator><pubDate>Thu, 20 Nov 2003 18:33:04 GMT</pubDate></item><item><title><![CDATA[Reply to PreTranslateMessage und der Schliessbutton [x] on Fri, 21 Nov 2003 09:45:44 GMT]]></title><description><![CDATA[<p>Du kannst doch aber OnClose, OnDestroy oder in CWinApp -&gt; ExitInstance überschreiben...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/399424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/399424</guid><dc:creator><![CDATA[JensX]]></dc:creator><pubDate>Fri, 21 Nov 2003 09:45:44 GMT</pubDate></item></channel></rss>