<?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[vc++ 6.0 Text von Static Elementen in Dialogen ändern]]></title><description><![CDATA[<p>Hallo,<br />
wie der Titel schon sagt möchte ich den Text eines Static Elements auf einem Dialog ändern: Ich befinde mich in der DlgProc und habe hDlg zur Verfügung mein Lösungsansatz:</p>
<pre><code class="language-cpp">...
case WM_INITDIALOG:
     SetDlgItemText( hDlg, IDC_STATIC, &quot;Text&quot; );
     return true;
...
</code></pre>
<p>IDC_STATIC ist natürlich die ID des Static Elementes, leider gibt die Funktion immer 0 zurück und es passiert auch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/131155/vc-6-0-text-von-static-elementen-in-dialogen-ändern</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 21:40:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/131155.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Dec 2005 15:17:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to vc++ 6.0 Text von Static Elementen in Dialogen ändern on Sat, 31 Dec 2005 15:17:30 GMT]]></title><description><![CDATA[<p>Hallo,<br />
wie der Titel schon sagt möchte ich den Text eines Static Elements auf einem Dialog ändern: Ich befinde mich in der DlgProc und habe hDlg zur Verfügung mein Lösungsansatz:</p>
<pre><code class="language-cpp">...
case WM_INITDIALOG:
     SetDlgItemText( hDlg, IDC_STATIC, &quot;Text&quot; );
     return true;
...
</code></pre>
<p>IDC_STATIC ist natürlich die ID des Static Elementes, leider gibt die Funktion immer 0 zurück und es passiert auch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/953511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/953511</guid><dc:creator><![CDATA[dielösung]]></dc:creator><pubDate>Sat, 31 Dec 2005 15:17:30 GMT</pubDate></item><item><title><![CDATA[Reply to vc++ 6.0 Text von Static Elementen in Dialogen ändern on Sat, 31 Dec 2005 15:23:28 GMT]]></title><description><![CDATA[<p>Ruf doch mal GetLastError(); auf.<br />
Der Rückgabewert ist der Fehlercode der letzten Funktion. (DWORD)<br />
Hier kannst du dann schauen, welcher Fehler es sein könnte:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/953515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/953515</guid><dc:creator><![CDATA[Nocternity]]></dc:creator><pubDate>Sat, 31 Dec 2005 15:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to vc++ 6.0 Text von Static Elementen in Dialogen ändern on Sat, 31 Dec 2005 15:24:40 GMT]]></title><description><![CDATA[<p>Solche Sachen bitte lieber im WinAPI-Forum fragen.</p>
<p>Also IDC_STATIC nennt er ja der ResEd. jedes Static Control beim Erstellen.<br />
Versuch das mal umzubennen nach IDC_MYSTATIC oder so.<br />
Vielleicht hilft das ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/953519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/953519</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 31 Dec 2005 15:24:40 GMT</pubDate></item><item><title><![CDATA[Reply to vc++ 6.0 Text von Static Elementen in Dialogen ändern on Sat, 31 Dec 2005 17:31:50 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/953610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/953610</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 31 Dec 2005 17:31:50 GMT</pubDate></item></channel></rss>