<?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[CBS_DROPDOWNLIST (wie krieg ich da meine auswahl rein)]]></title><description><![CDATA[<p>in der msdn ist ja wunderbar beschrieben wie ich eine solche list box bekomme nur ... seh ich da nirgends den hinweis wie ich da nun meine auswahl reinbekomme!</p>
<p>bishereiger Code:</p>
<pre><code>htype = CreateWindow (&quot;ComboBox&quot;,
                           &quot;Film/Serie&quot;,
                           CBS_DROPDOWNLIST | WS_VISIBLE | WS_CHILD,
                           20, 20,
                           70, 20,
                           hWnd,
                           (HMENU)ID_type,
                           NULL,
                           NULL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/170961/cbs_dropdownlist-wie-krieg-ich-da-meine-auswahl-rein</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 08:41:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/170961.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Jan 2007 13:20:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CBS_DROPDOWNLIST (wie krieg ich da meine auswahl rein) on Sun, 21 Jan 2007 13:20:32 GMT]]></title><description><![CDATA[<p>in der msdn ist ja wunderbar beschrieben wie ich eine solche list box bekomme nur ... seh ich da nirgends den hinweis wie ich da nun meine auswahl reinbekomme!</p>
<p>bishereiger Code:</p>
<pre><code>htype = CreateWindow (&quot;ComboBox&quot;,
                           &quot;Film/Serie&quot;,
                           CBS_DROPDOWNLIST | WS_VISIBLE | WS_CHILD,
                           20, 20,
                           70, 20,
                           hWnd,
                           (HMENU)ID_type,
                           NULL,
                           NULL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1213698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1213698</guid><dc:creator><![CDATA[SaIG]]></dc:creator><pubDate>Sun, 21 Jan 2007 13:20:32 GMT</pubDate></item><item><title><![CDATA[Reply to CBS_DROPDOWNLIST (wie krieg ich da meine auswahl rein) on Sun, 21 Jan 2007 15:02:47 GMT]]></title><description><![CDATA[<p>du musst der ComboBox nachrichten übermitteln um Elemente hinzuzufügen, entfernen usw. benutze die SendMessage funktion und schau dir die CB_... Nachrichten in der Doku an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1213782</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1213782</guid><dc:creator><![CDATA[0xDEADBEEF]]></dc:creator><pubDate>Sun, 21 Jan 2007 15:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to CBS_DROPDOWNLIST (wie krieg ich da meine auswahl rein) on Sun, 21 Jan 2007 15:36:11 GMT]]></title><description><![CDATA[<p>sry aber ich komm damit nicht wirklich zurecht!<br />
da gibt es so viel zur auswahl ... und kein einziges schaut so aus als wäre es für mich geeignet (hmmm)</p>
<p>gib mir mal bitte noch nen Tipp wie ich das anstelle ... will ja nur dass man in dem dropdown zwischen Film und serie auswählen kann...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1213800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1213800</guid><dc:creator><![CDATA[SaIG]]></dc:creator><pubDate>Sun, 21 Jan 2007 15:36:11 GMT</pubDate></item><item><title><![CDATA[Reply to CBS_DROPDOWNLIST (wie krieg ich da meine auswahl rein) on Sun, 21 Jan 2007 16:40:38 GMT]]></title><description><![CDATA[<pre><code>SendMessage(htype, (UINT) CB_ADDSTRING,0,(LPARAM) &quot;hier dein text&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1213851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1213851</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sun, 21 Jan 2007 16:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to CBS_DROPDOWNLIST (wie krieg ich da meine auswahl rein) on Sun, 21 Jan 2007 17:22:23 GMT]]></title><description><![CDATA[<p>Und eine Auswahl machst Du so:</p>
<pre><code class="language-cpp">inline void SelectListBoxItem(HWND hWndListBox, int iItemIndex = -1)
{
    SendMessage(hWndListBox, CB_SETCURSEL, static_cast&lt;WPARAM&gt;(iItemIndex), 0L);
}
</code></pre>
<p>Wenn Du hier wie im Default-Parameter angegeben, -1 übergibt, wird die gesamte bestehende Auswahl aufgehoben.<br />
Siehe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <a href="http://msdn2.microsoft.com/en-us/library/ms673196.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms673196.aspx</a></p>
<p>Und so ermittelt man das selektierte Item (da das sicherlich Deine nächsten Fragen werden oder werden könnten, greif ich das mal vor <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> ):</p>
<pre><code class="language-cpp">inline long GetSelectedListBoxItem(HWND hWndListBox)
{
    return (SendMessage(hWndListBox, CB_GETCURSEL, 0, 0L));
}
</code></pre>
<p>Hinweis: Ist der Return-Wert CB_ERR, ist ein Fehler aufgetreten <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="😉"
    /> .<br />
Siehe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <a href="http://msdn2.microsoft.com/en-us/library/ms673153.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms673153.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1213888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1213888</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 21 Jan 2007 17:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to CBS_DROPDOWNLIST (wie krieg ich da meine auswahl rein) on Mon, 22 Jan 2007 16:26:47 GMT]]></title><description><![CDATA[<p>Recht herzlichen dank euch beiden!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1214591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1214591</guid><dc:creator><![CDATA[SaIG]]></dc:creator><pubDate>Mon, 22 Jan 2007 16:26:47 GMT</pubDate></item></channel></rss>