<?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[Fenster wird erstellt und gleich gelöscht]]></title><description><![CDATA[<p>Ich erstelle ein Fenster (in einer Member-Funktion meiner Fensterklasse) mit</p>
<pre><code class="language-cpp">CString strClass = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW,AfxGetApp()-&gt;LoadCursor(IDC_ARROW),
		(HBRUSH)GetStockObject(LTGRAY_BRUSH),AfxGetApp()-&gt;LoadIcon(IDI_APPLICATION));

Create(strClass,&quot;BLA&quot;,0,rectDefault,0);
EnableWindow(TRUE);
ShowWindow(SW_SHOW);

Sleep(1000); // nur zum Testen
</code></pre>
<p>Das Fenster ist genau eine Sekunde sichtbar, dann verschwindet es wieder. Warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76289/fenster-wird-erstellt-und-gleich-gelöscht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 00:08:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76289.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jun 2004 15:21:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fenster wird erstellt und gleich gelöscht on Wed, 09 Jun 2004 15:21:25 GMT]]></title><description><![CDATA[<p>Ich erstelle ein Fenster (in einer Member-Funktion meiner Fensterklasse) mit</p>
<pre><code class="language-cpp">CString strClass = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW,AfxGetApp()-&gt;LoadCursor(IDC_ARROW),
		(HBRUSH)GetStockObject(LTGRAY_BRUSH),AfxGetApp()-&gt;LoadIcon(IDI_APPLICATION));

Create(strClass,&quot;BLA&quot;,0,rectDefault,0);
EnableWindow(TRUE);
ShowWindow(SW_SHOW);

Sleep(1000); // nur zum Testen
</code></pre>
<p>Das Fenster ist genau eine Sekunde sichtbar, dann verschwindet es wieder. Warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/536885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/536885</guid><dc:creator><![CDATA[ppc]]></dc:creator><pubDate>Wed, 09 Jun 2004 15:21:25 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster wird erstellt und gleich gelöscht on Wed, 09 Jun 2004 15:42:25 GMT]]></title><description><![CDATA[<p>Bestimmt weil der Destuktor des Fensters aufgerufen am Ende des Blocks wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/536901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/536901</guid><dc:creator><![CDATA[;-)]]></dc:creator><pubDate>Wed, 09 Jun 2004 15:42:25 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster wird erstellt und gleich gelöscht on Wed, 09 Jun 2004 18:26:14 GMT]]></title><description><![CDATA[<p>Richtig. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/537019</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/537019</guid><dc:creator><![CDATA[ppc]]></dc:creator><pubDate>Wed, 09 Jun 2004 18:26:14 GMT</pubDate></item></channel></rss>