<?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[IsCreated?]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich glaube ich stehe gerade aufm Schlauch...</p>
<p>Ich erstelle folgendermaßen ein Dialogfenster:</p>
<pre><code class="language-cpp">Dialog *pDlg = new Dialog();
pDlg-&gt;Create(Dialog::IDD, GetDesktopWindow());
</code></pre>
<p>Nun möchte ich den Code so umstrukturieren, dass abgefragt wird, ob das Dialogfenster schon created ist, also etwa:</p>
<pre><code class="language-cpp">Dialog *pDlg = new Dialog();
if(!pDlg.IsCreated()) {
pDlg-&gt;Create(Dialog::IDD, GetDesktopWindow());
}
</code></pre>
<p>Gibt es sowas in der Art? KOnnte das so nicht finden. Oder gibt es Alternativen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159823/iscreated</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 07:07:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159823.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Sep 2006 11:02:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IsCreated? on Tue, 19 Sep 2006 11:02:18 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich glaube ich stehe gerade aufm Schlauch...</p>
<p>Ich erstelle folgendermaßen ein Dialogfenster:</p>
<pre><code class="language-cpp">Dialog *pDlg = new Dialog();
pDlg-&gt;Create(Dialog::IDD, GetDesktopWindow());
</code></pre>
<p>Nun möchte ich den Code so umstrukturieren, dass abgefragt wird, ob das Dialogfenster schon created ist, also etwa:</p>
<pre><code class="language-cpp">Dialog *pDlg = new Dialog();
if(!pDlg.IsCreated()) {
pDlg-&gt;Create(Dialog::IDD, GetDesktopWindow());
}
</code></pre>
<p>Gibt es sowas in der Art? KOnnte das so nicht finden. Oder gibt es Alternativen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1140256</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1140256</guid><dc:creator><![CDATA[raterchen]]></dc:creator><pubDate>Tue, 19 Sep 2006 11:02:18 GMT</pubDate></item><item><title><![CDATA[Reply to IsCreated? on Tue, 19 Sep 2006 12:03:09 GMT]]></title><description><![CDATA[<p>Dann musst Du Dir einfach den Zeiger auf den Dialog merken. Dazu muss der Zeiger aber in irgendeiner Form gobal oder in einer Klasse abgelegt werden.</p>
<p>Ist der Dialog zerstört oder noch nicht erzeugt so ist m_hWnd NULL.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1140311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1140311</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 19 Sep 2006 12:03:09 GMT</pubDate></item><item><title><![CDATA[Reply to IsCreated? on Tue, 19 Sep 2006 12:07:39 GMT]]></title><description><![CDATA[<p>mit IsWindow könnte es klappen:</p>
<pre><code class="language-cpp">if( pDlg &amp;&amp; ::IsWindow( pDlg-&gt;GetSafeHwnd()))
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1140315</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1140315</guid><dc:creator><![CDATA[Airdamn]]></dc:creator><pubDate>Tue, 19 Sep 2006 12:07:39 GMT</pubDate></item></channel></rss>