<?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[Dialog aufrufen]]></title><description><![CDATA[<p>void CGameTimeCounterDlg::OnNewProfile()<br />
{</p>
<p>NewProfile dlg;<br />
dlg.Create(IDD_NEWPROFILE_DIALOG, this);<br />
dlg.ShowWindow(SW_RESTORE);</p>
<p>}</p>
<p>es wird alles ordnungsgemäß kompilliert aber wenn ich auf den entsprechenden Button klick passiert nichts(ausser das es kurz flimmert)<br />
was machich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80508/dialog-aufrufen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 04:34:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80508.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jul 2004 20:32:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialog aufrufen on Wed, 21 Jul 2004 20:32:16 GMT]]></title><description><![CDATA[<p>void CGameTimeCounterDlg::OnNewProfile()<br />
{</p>
<p>NewProfile dlg;<br />
dlg.Create(IDD_NEWPROFILE_DIALOG, this);<br />
dlg.ShowWindow(SW_RESTORE);</p>
<p>}</p>
<p>es wird alles ordnungsgemäß kompilliert aber wenn ich auf den entsprechenden Button klick passiert nichts(ausser das es kurz flimmert)<br />
was machich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565501</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565501</guid><dc:creator><![CDATA[the_duke]]></dc:creator><pubDate>Wed, 21 Jul 2004 20:32:16 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog aufrufen on Wed, 21 Jul 2004 20:38:47 GMT]]></title><description><![CDATA[<p>the_duke schrieb:</p>
<blockquote>
<p>was machich falsch?</p>
</blockquote>
<p>Du bedenkst nicht, wie lange deine Variable dlg &quot;lebt&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565507</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565507</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 21 Jul 2004 20:38:47 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog aufrufen on Wed, 21 Jul 2004 20:41:51 GMT]]></title><description><![CDATA[<p>Erstelle für den Dialog IDD_NEWPROFILE_DLG eine neue Klasse abgeleitet von CDIalog. Als Klassennamen nimmst Du am, besten CNewProfileDlg.</p>
<p>Dann kannst Du es folgendermassen aufrufen:</p>
<pre><code class="language-cpp">CNewProfileDlg dlgNew;
dlgNew.DoModal();
</code></pre>
<p>mfg<br />
Pro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565508</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Wed, 21 Jul 2004 20:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog aufrufen on Wed, 21 Jul 2004 20:49:24 GMT]]></title><description><![CDATA[<p>hab ich ja und die Klasse heisst NewProfile</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565516</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565516</guid><dc:creator><![CDATA[the_duke]]></dc:creator><pubDate>Wed, 21 Jul 2004 20:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog aufrufen on Wed, 21 Jul 2004 20:52:55 GMT]]></title><description><![CDATA[<p>the_duke schrieb:</p>
<blockquote>
<p>hab ich ja und die Klasse heisst NewProfile</p>
</blockquote>
<p>okay, dann ändere mal folgende Zeile:</p>
<pre><code class="language-cpp">NewProfile dlg;
</code></pre>
<p>in</p>
<pre><code class="language-cpp">CNewProfile dlgNew;
</code></pre>
<p>um und schreibe dann einfach dlgNew.DoModal();</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565518</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565518</guid><dc:creator><![CDATA[Programmer]]></dc:creator><pubDate>Wed, 21 Jul 2004 20:52:55 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog aufrufen on Wed, 21 Jul 2004 22:01:17 GMT]]></title><description><![CDATA[<p>Er will einen nichtModalen Dialog. DoModal erstellt eine Modalen.</p>
<p>MFK hat es bereits geschrieben.<br />
Du erstellt eine Instanz einer Klasse. Jetzt die Frage an dich. Wielange ist diese gültig bzw. wielange leben lokale Variablen.<br />
Antwort:<br />
Solange du dich noch in der Funktion befindest wo sie aufgerufen wird.</p>
<p>dlg.Create(IDD_NEWPROFILE_DIALOG, this); // Erstellt den Dialog<br />
dlg.ShowWindow(SW_RESTORE); // Zeigt in an.</p>
<p>Hier entsteht das Aufblitzen.<br />
Jetzt kehren beide Funktionen aber zurück und der Dialog wird angezeigt.<br />
Nunh wird die Funktion OnNewProfile() verlassen woduch auch der Destruktor von NewProfile aufgerufen wird und somit den Dialog zerstört.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565542</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Wed, 21 Jul 2004 22:01:17 GMT</pubDate></item></channel></rss>