<?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[Button Label nachtraeglich aendern]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich weiß, es ist zwar eine primitive Frage, aber ich wuerd doch gern herausfinden, wie man nachtraeglich die Buttonbeschriftung aendern kann!</p>
<p>hwndOrigBild = CreateWindowEx(NULL, TEXT(&quot;button&quot;), &quot;Original Bild&quot;,<br />
WS_CHILD | WS_VISIBLE | LBS_NOTIFY | BS_GROUPBOX, 0,0,420,330,<br />
hWnd, (HMENU)IDL_LISTBOXZ, NULL, NULL);</p>
<p>MfG</p>
<p>escapete</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/143898/button-label-nachtraeglich-aendern</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 10:53:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/143898.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Apr 2006 15:43:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button Label nachtraeglich aendern on Wed, 12 Apr 2006 15:43:09 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich weiß, es ist zwar eine primitive Frage, aber ich wuerd doch gern herausfinden, wie man nachtraeglich die Buttonbeschriftung aendern kann!</p>
<p>hwndOrigBild = CreateWindowEx(NULL, TEXT(&quot;button&quot;), &quot;Original Bild&quot;,<br />
WS_CHILD | WS_VISIBLE | LBS_NOTIFY | BS_GROUPBOX, 0,0,420,330,<br />
hWnd, (HMENU)IDL_LISTBOXZ, NULL, NULL);</p>
<p>MfG</p>
<p>escapete</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1036144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1036144</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Wed, 12 Apr 2006 15:43:09 GMT</pubDate></item><item><title><![CDATA[Reply to Button Label nachtraeglich aendern on Wed, 12 Apr 2006 15:46:21 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setwindowtext.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setwindowtext.asp</a><br />
oder<br />
sendmessage mit<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_settext.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_settext.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1036150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1036150</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 12 Apr 2006 15:46:21 GMT</pubDate></item><item><title><![CDATA[Reply to Button Label nachtraeglich aendern on Wed, 12 Apr 2006 15:46:26 GMT]]></title><description><![CDATA[<p>SetWindowText(hwndOrigBild, TEXT(&quot;neuer text&quot;));</p>
<p>so einfach gehts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1036151</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1036151</guid><dc:creator><![CDATA[da-nic]]></dc:creator><pubDate>Wed, 12 Apr 2006 15:46:26 GMT</pubDate></item><item><title><![CDATA[Reply to Button Label nachtraeglich aendern on Wed, 12 Apr 2006 16:04:45 GMT]]></title><description><![CDATA[<p>Also, bei mir klappt es nicht so ganz, mit dem aendern das Label Textes bzw. des Buttons... Nu ist eigtl egal ob ich nen Button oder was anderes hab... Es geht um die letzte Zeile <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<pre><code class="language-cpp">LRESULT CALLBACK WndProc(HWND hWnd, UINT umsg, WPARAM wParam, LPARAM lParam)
{
//...
static HWND hwndList, hwndOrigBild, hwndZeile,hwndSpalte,  hwndPixel;
//...

 switch (umsg)
   {
 //...
    case WM_CREATE:
hwndList = CreateWindowEx(NULL, TEXT(&quot;listbox&quot;), NULL,
          WS_CHILD | WS_VISIBLE |  WS_VSCROLL |LBS_NOTIFY , 430,20,100,100,
          hWnd, (HMENU)IDL_LISTBOXZ, NULL, NULL);
          // Fuellung der Listbox mit Anzahl der Zeilen
for (i = 0; i &lt; bitmap.bmHeight  ; i++){
   itoa(i, string1, 10);
   SendMessage(hwndList, LB_ADDSTRING, 0,(LPARAM)(string1));
   SendMessage(hwndList, LB_SETITEMDATA, i, (LPARAM)i);
}

// Zeilenlabel als ueberschrift
hwndLabel = CreateWindowEx(
           NULL, TEXT(&quot;static&quot;), &quot;Zeile&quot;,
           WS_CHILD| WS_VISIBLE| SS_CENTER,
           430, 280, 100, 20, hWnd, (HMENU)i,
           NULL, NULL);

//...anschließend:
case IDL_LISTBOXZ:
                switch (HIWORD(wParam))
                    {
                        case LBN_SELCHANGE:
                        long test;
                        hwndList = GetDlgItem(hWnd, IDL_LISTBOXZ);
                       // Zuordnung des selectierten Elements
                        nItem = SendMessage(hwndList, LB_GETCURSEL, 0, 0);
                        i = SendMessage(hwndList, LB_GETITEMDATA, nItem, 0);
                        // Umwandlung in einen String
                        itoa(i, string1, 10);

                        // Ausgabe im Label
                        SetWindowText(hwndLabel,string1);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1036175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1036175</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Wed, 12 Apr 2006 16:04:45 GMT</pubDate></item><item><title><![CDATA[Reply to Button Label nachtraeglich aendern on Wed, 12 Apr 2006 17:13:44 GMT]]></title><description><![CDATA[<p>Fehler gefunden...</p>
<p>ich hab bei allen buttons, die selbe sprungmarke</p>
<p>HMENU hMenu, // handle to menu, or child-window identifier</p>
<p>Daran hats gelegen... trotzdem danke fuers helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1036211</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1036211</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Wed, 12 Apr 2006 17:13:44 GMT</pubDate></item></channel></rss>