<?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[Gleicher Dialog mehrmals öffnen...]]></title><description><![CDATA[<p>Hallo, ich habe ein MDI-Anwendung wo ich per Menü ein Dialog mit Create öffne...<br />
Nun stürtzt das Programm ab sobald ich im Menü den gleichen Dialog wieder öffne.<br />
Ich möchte dass der User den Dialog mehrmals öffnen kann, aber ich weiß nicht wie oft er das Dialog öffnet.<br />
Kann mir vieleicht jemand sagen wie ich das Problem löse???<br />
Folgendes habe ich schon gemacht...</p>
<pre><code class="language-cpp">if(Angebot.GetSafeHwnd()==0)
{
  dlg.Create(IDD_DIALOG,NULL);
  dlg.ShowWindow(SW_SHOWNORMAL);
}
else
{
  // hier weiß ich eben nicht was hinkommt!!!   
}
</code></pre>
<p>Danke im voraus...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/5977/gleicher-dialog-mehrmals-öffnen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 16:10:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5977.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jun 2003 10:10:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gleicher Dialog mehrmals öffnen... on Mon, 02 Jun 2003 10:10:00 GMT]]></title><description><![CDATA[<p>Hallo, ich habe ein MDI-Anwendung wo ich per Menü ein Dialog mit Create öffne...<br />
Nun stürtzt das Programm ab sobald ich im Menü den gleichen Dialog wieder öffne.<br />
Ich möchte dass der User den Dialog mehrmals öffnen kann, aber ich weiß nicht wie oft er das Dialog öffnet.<br />
Kann mir vieleicht jemand sagen wie ich das Problem löse???<br />
Folgendes habe ich schon gemacht...</p>
<pre><code class="language-cpp">if(Angebot.GetSafeHwnd()==0)
{
  dlg.Create(IDD_DIALOG,NULL);
  dlg.ShowWindow(SW_SHOWNORMAL);
}
else
{
  // hier weiß ich eben nicht was hinkommt!!!   
}
</code></pre>
<p>Danke im voraus...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29050</guid><dc:creator><![CDATA[Anfänger]]></dc:creator><pubDate>Mon, 02 Jun 2003 10:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to Gleicher Dialog mehrmals öffnen... on Mon, 02 Jun 2003 10:58:00 GMT]]></title><description><![CDATA[<p>erzeuge ihn nur einmal, und zeige ihn mit showwindow an bzw. verstecke ihn mit showwindow</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29051</guid><dc:creator><![CDATA[n]]></dc:creator><pubDate>Mon, 02 Jun 2003 10:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to Gleicher Dialog mehrmals öffnen... on Mon, 02 Jun 2003 11:10:00 GMT]]></title><description><![CDATA[<p>Das habe ich auch schon gemacht, aber es bringt mich nicht weiter weil der Kunde soll die möglichkeit haben das gleiche Dialog mehrmals zu öffnen...</p>
<p>Trotzdem Danke für die schnelle Antwort...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29052</guid><dc:creator><![CDATA[Anfänger]]></dc:creator><pubDate>Mon, 02 Jun 2003 11:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to Gleicher Dialog mehrmals öffnen... on Mon, 02 Jun 2003 11:17:00 GMT]]></title><description><![CDATA[<p>Ich vermute mal, dass irgendwo</p>
<p>CDialog dlg;</p>
<p>o.ä. steht. Und da ist das Problem, für dlg kannst Du nur einmal Create aufrufen. Du musst das ungefähr so machen:</p>
<p>CDialog* pdlg = new CDialog();</p>
<p>dann</p>
<p>pdlg-&gt;Create(...)</p>
<p>aufrufen.</p>
<p>Wichtig: irgendwo muss dann auch wieder</p>
<p>delete pdlg;</p>
<p>aufgerufen werden, damit die Instanz gelöscht wird. Also am Besten in einer dynamischen List verwalten oder ähnliches.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29053</guid><dc:creator><![CDATA[Shaggy]]></dc:creator><pubDate>Mon, 02 Jun 2003 11:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to Gleicher Dialog mehrmals öffnen... on Mon, 02 Jun 2003 11:27:00 GMT]]></title><description><![CDATA[<p>Danke schon mal im voraus..<br />
Ich werde jetzt mal testen und melde mich dann später...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29054</guid><dc:creator><![CDATA[Anfänger]]></dc:creator><pubDate>Mon, 02 Jun 2003 11:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to Gleicher Dialog mehrmals öffnen... on Mon, 02 Jun 2003 11:51:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/2980">@Shaggy</a><br />
Jo, ich habe das jetzt so gemacht wie du es geschrieben hast und es funktioniert...<br />
DAnke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29055</guid><dc:creator><![CDATA[Anfänger]]></dc:creator><pubDate>Mon, 02 Jun 2003 11:51:00 GMT</pubDate></item></channel></rss>