<?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[COMBOBOX ohne &amp;quot;Kopf&amp;quot;(nur die liste)]]></title><description><![CDATA[<p>Hey an alle,<br />
vielleicht irre ich mich auch nur aber bei der Listbox wird ein Eintrag beim drüberfahren nicht markiert, bei der Combobox schon...</p>
<p>Ich würd gerne einen &quot;mischmasch&quot; aus den beiden Komponenten, eine Combobox ohne das obere &quot;Edit&quot; also einfach eine Liste, in der das Element über dem ich gerade bin selektiert wird.</p>
<p>Gibt es da schon eine Komponente, reicht es eine Listbox zu Subclassen und per Mausposition zu errechnen welches Element aktiv sein muss, und dann per SetSel zu arbeiten?</p>
<p>Danke im Vorraus...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/210988/combobox-ohne-quot-kopf-quot-nur-die-liste</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 20:23:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/210988.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Apr 2008 13:36:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to COMBOBOX ohne &amp;quot;Kopf&amp;quot;(nur die liste) on Thu, 17 Apr 2008 13:36:19 GMT]]></title><description><![CDATA[<p>Hey an alle,<br />
vielleicht irre ich mich auch nur aber bei der Listbox wird ein Eintrag beim drüberfahren nicht markiert, bei der Combobox schon...</p>
<p>Ich würd gerne einen &quot;mischmasch&quot; aus den beiden Komponenten, eine Combobox ohne das obere &quot;Edit&quot; also einfach eine Liste, in der das Element über dem ich gerade bin selektiert wird.</p>
<p>Gibt es da schon eine Komponente, reicht es eine Listbox zu Subclassen und per Mausposition zu errechnen welches Element aktiv sein muss, und dann per SetSel zu arbeiten?</p>
<p>Danke im Vorraus...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1493600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1493600</guid><dc:creator><![CDATA[lippoliv]]></dc:creator><pubDate>Thu, 17 Apr 2008 13:36:19 GMT</pubDate></item><item><title><![CDATA[Reply to COMBOBOX ohne &amp;quot;Kopf&amp;quot;(nur die liste) on Thu, 17 Apr 2008 13:51:14 GMT]]></title><description><![CDATA[<p>lippoliv schrieb:</p>
<blockquote>
<p>reicht es eine Listbox zu Subclassen und per Mausposition zu errechnen welches Element aktiv sein muss, und dann per SetSel zu arbeiten?</p>
<p>Danke im v******...</p>
</blockquote>
<p>So ist es. Das hast du schon richtig im Voraus erkannt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1493606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1493606</guid><dc:creator><![CDATA[rofler]]></dc:creator><pubDate>Thu, 17 Apr 2008 13:51:14 GMT</pubDate></item><item><title><![CDATA[Reply to COMBOBOX ohne &amp;quot;Kopf&amp;quot;(nur die liste) on Thu, 17 Apr 2008 13:58:18 GMT]]></title><description><![CDATA[<p>Okay danke für die Antwort.</p>
<p>Voraus also.. okay...</p>
<p>Auf jeden Fall Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1493612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1493612</guid><dc:creator><![CDATA[lippoliv]]></dc:creator><pubDate>Thu, 17 Apr 2008 13:58:18 GMT</pubDate></item><item><title><![CDATA[Reply to COMBOBOX ohne &amp;quot;Kopf&amp;quot;(nur die liste) on Thu, 17 Apr 2008 14:16:06 GMT]]></title><description><![CDATA[<p>hier, weil ich heute so nett bin</p>
<pre><code class="language-cpp">LRESULT CALLBACK nListProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
	INT xPos, yPos, nElem, nCur;	
	static INT nCharHeight;

	switch(message) {
		case WM_MOUSEMOVE:
			if(!nCharHeight) {
				TEXTMETRIC tm;
				HDC hDC = GetDC(hWnd);
				GetTextMetrics(hDC, &amp;tm);
				nCharHeight = tm.tmHeight;
				ReleaseDC(hWnd, hDC);
			}

			xPos = GET_X_LPARAM(lParam);
			yPos = GET_Y_LPARAM(lParam);

			nElem = 0;
			while(yPos / nCharHeight) {
				yPos = yPos - nCharHeight;
				nElem++;
			}

			nCur = SendMessage(hWnd, LB_GETCURSEL, 0, 0);
			if( nCur != nElem )
				SendMessage(hWnd, LB_SETCURSEL, nElem, 0);
			return 0;
	}
	return CallWindowProc( oListProc, hWnd, message, wParam, lParam );
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1493624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1493624</guid><dc:creator><![CDATA[rofler]]></dc:creator><pubDate>Thu, 17 Apr 2008 14:16:06 GMT</pubDate></item><item><title><![CDATA[Reply to COMBOBOX ohne &amp;quot;Kopf&amp;quot;(nur die liste) on Thu, 17 Apr 2008 14:46:57 GMT]]></title><description><![CDATA[<p>Boah bist du nett, viele Danek im nachhinain!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1493645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1493645</guid><dc:creator><![CDATA[lippoliv|_work]]></dc:creator><pubDate>Thu, 17 Apr 2008 14:46:57 GMT</pubDate></item><item><title><![CDATA[Reply to COMBOBOX ohne &amp;quot;Kopf&amp;quot;(nur die liste) on Thu, 17 Apr 2008 15:18:45 GMT]]></title><description><![CDATA[<p>lippoliv|_work schrieb:</p>
<blockquote>
<p>Boah bist du nett, viele Danek im nachhinain!</p>
</blockquote>
<p>was auch immer du damit sagen willst, ich will keinen Code.. ich wollt nur wissen obs noch ne andere sache gibt...</p>
<p>C&amp;P != Lerneffekt,<br />
ausserdem bin ich nicht auf der Arbeit und das hat nichts mit Arbeit zu tun, ist ein Hobby-Projekt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1493670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1493670</guid><dc:creator><![CDATA[lippoliv]]></dc:creator><pubDate>Thu, 17 Apr 2008 15:18:45 GMT</pubDate></item></channel></rss>