<?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[Ab wann ist ein Fenster geschlossen?]]></title><description><![CDATA[<p>Hallo,</p>
<p>und zwar kopiere ich jede 100ms ein Fenster-DC in eine Datei. Jetzt kann es sein, dass das Fenster geschlossen wird - und damit das Handle nicht mehr gültig ist - und ich ebenfalls ein Leeres(schwarzes) DC bekomme.</p>
<p>Jetzt will ich es aber nicht zum schwarzen DC kommen lassen!! Wie kann ich also am BEsten abfragen, ob das Handle noch &quot;In Ordnung ist&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/183600/ab-wann-ist-ein-fenster-geschlossen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 02:12:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/183600.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Jun 2007 14:48:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ab wann ist ein Fenster geschlossen? on Wed, 06 Jun 2007 14:48:53 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>und zwar kopiere ich jede 100ms ein Fenster-DC in eine Datei. Jetzt kann es sein, dass das Fenster geschlossen wird - und damit das Handle nicht mehr gültig ist - und ich ebenfalls ein Leeres(schwarzes) DC bekomme.</p>
<p>Jetzt will ich es aber nicht zum schwarzen DC kommen lassen!! Wie kann ich also am BEsten abfragen, ob das Handle noch &quot;In Ordnung ist&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1300126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1300126</guid><dc:creator><![CDATA[Master-C33]]></dc:creator><pubDate>Wed, 06 Jun 2007 14:48:53 GMT</pubDate></item><item><title><![CDATA[Reply to Ab wann ist ein Fenster geschlossen? on Wed, 06 Jun 2007 16:11:52 GMT]]></title><description><![CDATA[<p>IsWindow</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1300193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1300193</guid><dc:creator><![CDATA[CodeFinde]]></dc:creator><pubDate>Wed, 06 Jun 2007 16:11:52 GMT</pubDate></item><item><title><![CDATA[Reply to Ab wann ist ein Fenster geschlossen? on Wed, 06 Jun 2007 16:17:06 GMT]]></title><description><![CDATA[<p>So wollte das jetzt übre einen Hook machen: Der Hook erhält zwar Messages, aber die WM_CLOSE / DESTROY kommt nichtan? evt. sieht jemand von euch einen Fehler:</p>
<pre><code>int		g_nType; 
HOOKPROC	g_hkprc; 
HHOOK		g_hhook; 

HINSTANCE hInst = (HINSTANCE)GetWindowLong(m_TableBuffer.pt.hWnd, GWL_HINSTANCE);
g_hhook = SetWindowsHookEx( WH_CALLWNDPROC, CallWndProc, hInst, 0 ); 

LRESULT WINAPI CallWndProc(int nCode, WPARAM wParam, LPARAM lParam) 
{ 
	PCWPSTRUCT pStruct = ((PCWPSTRUCT)lParam);
	if( pStruct-&gt;message == WM_DESTROY ||
		pStruct-&gt;message == WM_QUIT ||
		pStruct-&gt;message == WM_CLOSE )
	{
		OutputDebugString( &quot;Yes!!&quot; );
	}

	if( pStruct-&gt;message == WM_COMMAND )
	{
		if( LOWORD(pStruct-&gt;wParam) == IDCANCEL )
		{
			OutputDebugString( &quot;Yes22!!&quot; );
		}
	}

	return CallNextHookEx( g_hhook, nCode, wParam, lParam); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1300200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1300200</guid><dc:creator><![CDATA[Master-C33]]></dc:creator><pubDate>Wed, 06 Jun 2007 16:17:06 GMT</pubDate></item><item><title><![CDATA[Reply to Ab wann ist ein Fenster geschlossen? on Wed, 06 Jun 2007 16:18:29 GMT]]></title><description><![CDATA[<p>Hi, Hab es mit IsWindow ausprobiert. Ist nicht &quot;sauber&quot; genug.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1300201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1300201</guid><dc:creator><![CDATA[Master-C33]]></dc:creator><pubDate>Wed, 06 Jun 2007 16:18:29 GMT</pubDate></item></channel></rss>