<?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 funxt niet]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	static	HWND hList;
	char tchBuffer[2]=&quot;&quot;;
	switch (message) 
	{
	case WM_DRAWITEM:
		{
			int len;
			LPDRAWITEMSTRUCT lpdis = (LPDRAWITEMSTRUCT) lParam; 

            if (lpdis-&gt;itemID == -1)            break; 
        	switch (lpdis-&gt;itemAction) 
            { 
                case ODA_DRAWENTIRE: 
					len=SendMessage(hList, LB_GETTEXT, 0, (long)tchBuffer); 
				    MessageBox(0,tchBuffer,0,0);	//kommt nur muell
            }; 
    		break;
		}
	case WM_CREATE:
		{
			s.cbSize=sizeof(SCROLLINFO);
			s.fMask=SIF_ALL;
			hList=CreateWindow(&quot;listbox&quot;,0,WS_CHILD|WS_VISIBLE|WS_VSCROLL|LBS_OWNERDRAWFIXED ,
			100,100,100,100,hWnd,(HMENU)23,hInst,0);
			SendMessage(hList, LB_ADDSTRING, 0, (LPARAM) &quot;a&quot;);
			SendMessage(hList, LB_ADDSTRING, 1, (LPARAM) &quot;b&quot;);
			break;
		}
</code></pre>
<p>Ich bekomme die werte nicht aus der listbox.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/100448/listbox-funxt-niet</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 16:28:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/100448.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Feb 2005 13:20:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to listbox funxt niet on Mon, 07 Feb 2005 13:20:16 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	static	HWND hList;
	char tchBuffer[2]=&quot;&quot;;
	switch (message) 
	{
	case WM_DRAWITEM:
		{
			int len;
			LPDRAWITEMSTRUCT lpdis = (LPDRAWITEMSTRUCT) lParam; 

            if (lpdis-&gt;itemID == -1)            break; 
        	switch (lpdis-&gt;itemAction) 
            { 
                case ODA_DRAWENTIRE: 
					len=SendMessage(hList, LB_GETTEXT, 0, (long)tchBuffer); 
				    MessageBox(0,tchBuffer,0,0);	//kommt nur muell
            }; 
    		break;
		}
	case WM_CREATE:
		{
			s.cbSize=sizeof(SCROLLINFO);
			s.fMask=SIF_ALL;
			hList=CreateWindow(&quot;listbox&quot;,0,WS_CHILD|WS_VISIBLE|WS_VSCROLL|LBS_OWNERDRAWFIXED ,
			100,100,100,100,hWnd,(HMENU)23,hInst,0);
			SendMessage(hList, LB_ADDSTRING, 0, (LPARAM) &quot;a&quot;);
			SendMessage(hList, LB_ADDSTRING, 1, (LPARAM) &quot;b&quot;);
			break;
		}
</code></pre>
<p>Ich bekomme die werte nicht aus der listbox.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/716720</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/716720</guid><dc:creator><![CDATA[listbox funxt niet]]></dc:creator><pubDate>Mon, 07 Feb 2005 13:20:16 GMT</pubDate></item><item><title><![CDATA[Reply to listbox funxt niet on Mon, 07 Feb 2005 14:21:27 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">long nLen;
nLen = SendMessage(hList, LB_GETTEXTLEN, (WPARAM)0, 0);
char *pText= new char[nLen + 1];
SendMessage(hList, LB_GETTEXT, (WPARAM)0, (LPARAM)pText);
</code></pre>
<p>zum nachlesen<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listboxes/listboxreference/listboxmessages/lb_gettext.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listboxes/listboxreference/listboxmessages/lb_gettext.asp</a><br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listboxes/listboxreference/listboxmessages/lb_gettextlen.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listboxes/listboxreference/listboxmessages/lb_gettextlen.asp</a></p>
<p>[edit]<br />
links und nicht vergessen speicher wieder zu löschen <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/716770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/716770</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 07 Feb 2005 14:21:27 GMT</pubDate></item></channel></rss>