<?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[Dynamischer Dialog mit dynamischen Controls (ohne Ressourcefiles)]]></title><description><![CDATA[<p>Hallo ich habe gesehen, dass man mit Hilfe von CreateDialogIndirect einen dynamischen Dialog erstellen kann. Allerdings hilft mir die MSDN nicht wirklich weiter. Kann vielleicht jemand Code posten wie man einen Dialog mit einem Button und einer Textbox auf diese Weise erstellen kann?</p>
<p>Dank im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159031/dynamischer-dialog-mit-dynamischen-controls-ohne-ressourcefiles</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 10:00:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159031.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Sep 2006 12:55:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dynamischer Dialog mit dynamischen Controls (ohne Ressourcefiles) on Mon, 11 Sep 2006 12:55:51 GMT]]></title><description><![CDATA[<p>Hallo ich habe gesehen, dass man mit Hilfe von CreateDialogIndirect einen dynamischen Dialog erstellen kann. Allerdings hilft mir die MSDN nicht wirklich weiter. Kann vielleicht jemand Code posten wie man einen Dialog mit einem Button und einer Textbox auf diese Weise erstellen kann?</p>
<p>Dank im Voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135149</guid><dc:creator><![CDATA[verwirrter]]></dc:creator><pubDate>Mon, 11 Sep 2006 12:55:51 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamischer Dialog mit dynamischen Controls (ohne Ressourcefiles) on Mon, 11 Sep 2006 13:06:00 GMT]]></title><description><![CDATA[<p>Dazu brauchst du die Struktur DIALOGTEMPLETE...</p>
<p>Guckst du mal hier: <a href="http://www.flipcode.com/files/code/DialogTemplate.cpp" rel="nofollow"><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f4a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--light_bulb"
      title=":bulb:"
      alt="💡"
    /></a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135156</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Mon, 11 Sep 2006 13:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamischer Dialog mit dynamischen Controls (ohne Ressourcefiles) on Mon, 11 Sep 2006 14:03:01 GMT]]></title><description><![CDATA[<p>Ich habe den Code mal eingebaut.</p>
<pre><code>DWORD style = WS_VISIBLE| WS_SYSMENU | DS_MODALFRAME | DS_CENTER | DS_SETFOREGROUND;

DialogTemplate templ(&quot;Test&quot;,style,0,0,200,300);

DWORD buttonStyle = WS_CHILD;
DWORD buttonEx = WS_EX_CONTROLPARENT;

templ.AddButton(&quot;Testbutton&quot;,buttonStyle,buttonEx,10,10,50,50,250);

CreateDialogIndirect(hInst,(LPCDLGTEMPLATEA&amp;)templ,hWnd,DlgProc2);

DWORD lastErr = GetLastError();

ShowWindow(dlgIndirect,SW_SHOWNORMAL); 
UpdateWindow(dlgIndirect);
</code></pre>
<p>lastErr ist 0. Aber es wir kein Dialog angezeigt. Ausserdem wird in dem Beispiel keine Textbox angezeigt. (In einer res. Datei: EDITTEXT, beim dyn-Dialog?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135210</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135210</guid><dc:creator><![CDATA[verwirrter]]></dc:creator><pubDate>Mon, 11 Sep 2006 14:03:01 GMT</pubDate></item></channel></rss>