<?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[Listbox ohne dialogfeld]]></title><description><![CDATA[<p>Guten Abend,</p>
<p>ich wollte mal nachfragen, ob jemand ein Beispiel fuer eine Listbox hat, welches mit paar Elementen gefuellt ist, jedoch bitte nicht als Dialogfenster. Wollte es auf meiner Grafischen Oberflaeche einbinden.<br />
Vielen Dank schon mal...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/143565/listbox-ohne-dialogfeld</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 03:00:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/143565.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Apr 2006 18:36:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Sun, 09 Apr 2006 18:36:36 GMT]]></title><description><![CDATA[<p>Guten Abend,</p>
<p>ich wollte mal nachfragen, ob jemand ein Beispiel fuer eine Listbox hat, welches mit paar Elementen gefuellt ist, jedoch bitte nicht als Dialogfenster. Wollte es auf meiner Grafischen Oberflaeche einbinden.<br />
Vielen Dank schon mal...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034061</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Sun, 09 Apr 2006 18:36:36 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Sun, 09 Apr 2006 20:15:32 GMT]]></title><description><![CDATA[<p>Gut das die MSDN Library wieder aus der Mode gerät -.-<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/wincontrols.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/wincontrols.asp</a></p>
<p>sind alle Ctrls einmal aufgelistet... so dann klickt man da auf ListBox.... dann Using List Box .... jetzt sollte man sich noch die jeweiligen Beispiele mit ShowExample öffnen.... fertig -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034119</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034119</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 09 Apr 2006 20:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 10:36:22 GMT]]></title><description><![CDATA[<p>Okay, ich habe nun meine ListBox erschaffen und mit paar Elementen gefuellt. Besser gesagt, mit der Anzahl der Zeilen eines Bildes</p>
<p>Wie lese ich nun das selctierte Element aus?</p>
<pre><code class="language-cpp">hwndList = CreateWindowEx(NULL, TEXT(&quot;listbox&quot;), NULL,
                     WS_CHILD | WS_VISIBLE |  WS_VSCROLL , 400,20,100,100,
                     hWnd, (HMENU)IDL_LISTBOXZ, NULL, NULL);
 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);
 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1034358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034358</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Mon, 10 Apr 2006 10:36:22 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 10:42:27 GMT]]></title><description><![CDATA[<p>messages LB_GETCURSEL und LB_GETITEMDATA<br />
bsp:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listboxes/usinglistboxes.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listboxes/usinglistboxes.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034363</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 10 Apr 2006 10:42:27 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 11:21:46 GMT]]></title><description><![CDATA[<p>Sorry, aber ich krieg es nicht hin.</p>
<p>Ich moechte das selektierte Element als MSG Box ausgeben. Koennte mir bitte jemand debei helfen!? DANKE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034387</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Mon, 10 Apr 2006 11:21:46 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 11:33:02 GMT]]></title><description><![CDATA[<p>zeig doch mal deinen ansatz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034398</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 10 Apr 2006 11:33:02 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 11:39:16 GMT]]></title><description><![CDATA[<p>Also ich brauche das Element, welches gerade ausgewaehlt wurde und das sollte dann an ein Label geschickt werden... Zu Testzwecken wollte ich es erstmal als MSGBOX ausgeben lassen...</p>
<pre><code class="language-cpp">LRESULT CALLBACK WndProc(HWND hWnd, UINT umsg, WPARAM wParam, LPARAM lParam)
{
char string[255];
static HINSTANCE hInstance;
HDC     hdc, hdcMem;
static HBITMAP      hBitMap;
static BITMAP        bitmap ;
PAINTSTRUCT        ps ;
#define IDC_LIST 4000
static HWND hwndList;
static HWND hwndLabel;
int i;
char help;
char string1[5];

case WM_COMMAND:
 switch(LOWORD(wParam)){
 //...
    case IDL_LISTBOXZ:
      switch (HIWORD(wParam)){ 
        //case LBN_SELCHANGE:
        hwndList = GetDlgItem(hWnd, IDL_LISTBOXZ);
        nItem = SendMessage(hwndList, LB_GETCURSEL, 0, 0);
        i = SendMessage(hwndList, LB_GETITEMDATA, nItem, 0);
        itoa(i, string1, 5);
        MessageBox(hWnd,string1, &quot;Die Nachricht WM_COMMAND wurde erzeugt&quot;, MB_OK);
        return TRUE;
      }
      break;
 }
break;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1034403</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034403</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Mon, 10 Apr 2006 11:39:16 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 11:46:08 GMT]]></title><description><![CDATA[<p>wieso hast du LBN_SELCHANGE auskommentiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034411</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 10 Apr 2006 11:46:08 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 11:54:25 GMT]]></title><description><![CDATA[<p>Weil ich ansonsten keine MsgBox erhalte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1034418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034418</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Mon, 10 Apr 2006 11:54:25 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 12:02:51 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listboxes/listboxreference/listboxmessages/lbn_selchange.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listboxes/listboxreference/listboxmessages/lbn_selchange.asp</a></p>
<p>msdn schrieb:</p>
<blockquote>
<p>Remarks</p>
<p>This notification message is not sent if the LB_SETCURSEL message changes the selection.</p>
<p>This notification message applies only to a list box that has the LBS_NOTIFY style.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1034427</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034427</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 10 Apr 2006 12:02:51 GMT</pubDate></item><item><title><![CDATA[Reply to Listbox ohne dialogfeld on Mon, 10 Apr 2006 12:11:04 GMT]]></title><description><![CDATA[<p>Urploetzlich steht nu ein LBS_NOTIFY bei mir in der ListBox <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">hwndList = CreateWindowEx(... | LBS_NOTIFY , ...);
</code></pre>
<p>VIELEN VIELEN DANK <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/1034435</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1034435</guid><dc:creator><![CDATA[escapete]]></dc:creator><pubDate>Mon, 10 Apr 2006 12:11:04 GMT</pubDate></item></channel></rss>