<?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 Items hinzufügen problem..]]></title><description><![CDATA[<p>moin,</p>
<p>wie kann ich Items zu einer ComboBox hinzufügen?</p>
<p>hier meine ComboBox:</p>
<pre><code class="language-cpp">....
hChannel = CreateWindowEx(WS_EX_CLIENTEDGE, &quot;ComboBox&quot;, &quot;&quot;, WS_VISIBLE|WS_CHILD|CBS_DROPDOWNLIST,
                100,
                10,
                200,
                20,
                hwnd, (HMENU)CMB_CHANNEL, ((LPCREATESTRUCT) lParam) -&gt; hInstance, 0);
....
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/140185/combobox-items-hinzufügen-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 08:21:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/140185.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Mar 2006 19:52:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 19:52:19 GMT]]></title><description><![CDATA[<p>moin,</p>
<p>wie kann ich Items zu einer ComboBox hinzufügen?</p>
<p>hier meine ComboBox:</p>
<pre><code class="language-cpp">....
hChannel = CreateWindowEx(WS_EX_CLIENTEDGE, &quot;ComboBox&quot;, &quot;&quot;, WS_VISIBLE|WS_CHILD|CBS_DROPDOWNLIST,
                100,
                10,
                200,
                20,
                hwnd, (HMENU)CMB_CHANNEL, ((LPCREATESTRUCT) lParam) -&gt; hInstance, 0);
....
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1014857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014857</guid><dc:creator><![CDATA[combo]]></dc:creator><pubDate>Sun, 12 Mar 2006 19:52:19 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 20:22:43 GMT]]></title><description><![CDATA[<p>CB_ADDSTRING<br />
Siehe:<br />
<a href="http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/comboboxes/aboutcomboboxes.asp?frame=true" rel="nofollow">http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/comboboxes/aboutcomboboxes.asp?frame=true</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1014867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014867</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 12 Mar 2006 20:22:43 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 20:27:47 GMT]]></title><description><![CDATA[<p>hmm, nö geht nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<pre><code class="language-cpp">...
int ind;
char *test = &quot;Test&quot;;

....

ind = SendMessage(hChannel, CB_ADDSTRING, 0, *test);

...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1014868</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014868</guid><dc:creator><![CDATA[combo]]></dc:creator><pubDate>Sun, 12 Mar 2006 20:27:47 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 20:47:46 GMT]]></title><description><![CDATA[<p>Du weisst aber was das &quot;*&quot; vor dem &quot;test&quot; bedeutet, oder???<br />
Auch solltest Du &quot;CBS_HASSTRINGS&quot; setzen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1014874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014874</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 12 Mar 2006 20:47:46 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 20:50:09 GMT]]></title><description><![CDATA[<p>und wie soltle es dann aussehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1014875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014875</guid><dc:creator><![CDATA[combo]]></dc:creator><pubDate>Sun, 12 Mar 2006 20:50:09 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 21:01:12 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">ind = SendMessage(hChannel, CB_ADDSTRING, 0, test);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1014878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014878</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 12 Mar 2006 21:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 21:02:37 GMT]]></title><description><![CDATA[<p>geht auch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1014880</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014880</guid><dc:creator><![CDATA[combo]]></dc:creator><pubDate>Sun, 12 Mar 2006 21:02:37 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 21:06:31 GMT]]></title><description><![CDATA[<p>CBS_HASSTRINGS !???????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1014881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014881</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 12 Mar 2006 21:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 21:11:58 GMT]]></title><description><![CDATA[<p>hier ein größerer ausschnitt, wo man alles sieht:</p>
<pre><code class="language-cpp">LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    char txt[256]; // Vtext of hMsg
    int ind;
    char *test = &quot;fdsgdfsg&quot;;
    switch (message)                  /* handle the messages */
    {
        case WM_CREATE:
            /* ::::: DIE COMBOBOX UND BUTTON ::: */
            hChannel = CreateWindowEx(WS_EX_CLIENTEDGE, &quot;ComboBox&quot;, &quot;&quot;, WS_VISIBLE|WS_CHILD|CBS_DROPDOWNLIST|CBS_HASSTRINGS,
                100,
                10,
                200,
                20,
                hwnd, (HMENU)CMB_CHANNEL, ((LPCREATESTRUCT) lParam) -&gt; hInstance, 0);
            PrevhChannel = SetWindowLongPtr (hChannel, GWLP_WNDPROC, (LONG_PTR) ChannelControl);
            CreateWindowEx(WS_EX_CLIENTEDGE,&quot;Button&quot;,
                                  &quot;Verbinden&quot;,
                                  WS_CHILD | WS_VISIBLE,
                                  310, // x-pos
                                  10, //y-pos
                                  100, // width
                                  25, //height
                                  hwnd, (HMENU)BTN_CONNECT, ((LPCREATESTRUCT) lParam) -&gt; hInstance, NULL);
            CreateWindowEx(WS_EX_CLIENTEDGE,&quot;Button&quot;,
                                  &quot;Trennen&quot;,
                                  WS_CHILD | WS_VISIBLE,
                                  415, // x-pos
                                  10, //y-pos
                                  100, // width
                                  25, //height
                                  hwnd, (HMENU)BTN_DICONNECT, ((LPCREATESTRUCT) lParam) -&gt; hInstance, NULL);

             /* ::: Chat Control (RichText) */
             hChat = CreateWindowEx(WS_EX_CLIENTEDGE, &quot;RichEdit&quot;, &quot;&quot;, 
                 WS_VISIBLE|WS_CHILD|WS_VSCROLL|ES_MULTILINE|ES_AUTOVSCROLL, // style
                 10, // x -Position
                 40, // y-Postiotns
                 580,  // länge
                 290, // höhe
                 hwnd, (HMENU)TXT_CHAT, ((LPCREATESTRUCT) lParam) -&gt; hInstance, 0);
             PrevhChat = SetWindowLongPtr (hChat, GWLP_WNDPROC, (LONG_PTR) ChatControl);
             /* ::: MSG Control (EditBox) */
             hMsg = CreateWindowEx(WS_EX_CLIENTEDGE, &quot;Edit&quot;, &quot;&quot;, 
                 WS_VISIBLE|WS_CHILD|WS_BORDER|ES_WANTRETURN|ES_AUTOHSCROLL, // style
                 10, // x -Position
                 335, // y-Postiotns
                 510,  // länge
                 25, // höhe
                 hwnd, (HMENU)TXT_MSG, ((LPCREATESTRUCT) lParam) -&gt; hInstance, 0);
                 /* CALLBACK */
             PrevhMsg = SetWindowLongPtr (hMsg, GWLP_WNDPROC, (LONG_PTR) MsgControl);
             /* ::: Button Send Controll ::: */
             hSend = CreateWindowEx(WS_EX_CLIENTEDGE,&quot;Button&quot;,
                                  &quot;Send&quot;,
                                  WS_CHILD | WS_VISIBLE,
                                  525, // x-pos
                                  335, //y-pos
                                  65, // width
                                  25, //height
                                  hwnd, (HMENU)BTN_SEND, ((LPCREATESTRUCT) lParam) -&gt; hInstance, NULL);
            /* SEND MESSAGES */
            ind = SendMessage(hChannel, CB_ADDSTRING, 0, (LPARAM)test);
            //SendMessage(hChannel, CB_INSERTSTRING, ind, (LPARAM)*txt2);
             break;
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1014884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014884</guid><dc:creator><![CDATA[combo]]></dc:creator><pubDate>Sun, 12 Mar 2006 21:11:58 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 22:14:14 GMT]]></title><description><![CDATA[<p>PrevhChannel = SetWindowLongPtr (hChannel, GWLP_WNDPROC, (LONG_PTR) ChannelControl);</p>
<p>Wieso tauschst du die Window proc da aus. Wie sieht ChannelControl aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1014898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014898</guid><dc:creator><![CDATA[skapps]]></dc:creator><pubDate>Sun, 12 Mar 2006 22:14:14 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Sun, 12 Mar 2006 22:59:23 GMT]]></title><description><![CDATA[<p>Liegt fast immer daran das die ComboBox zu klein ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1014920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1014920</guid><dc:creator><![CDATA[FAQ]]></dc:creator><pubDate>Sun, 12 Mar 2006 22:59:23 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Mon, 13 Mar 2006 14:07:20 GMT]]></title><description><![CDATA[<p>hmm, an der größe leigt es nicht den 200px breit reicht wohl für &quot;Test&quot;^^</p>
<p>hier das CALLBACK von ChannelControl .</p>
<pre><code class="language-cpp">LRESULT CALLBACK ChannelControl (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch(msg)
    {

    }

    return CallWindowProc ((WNDPROC) PrevhChannel, hwnd, msg, wParam, lParam);  
}
</code></pre>
<p>habe da ncoh ncihts gemacht <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/1015356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1015356</guid><dc:creator><![CDATA[combo]]></dc:creator><pubDate>Mon, 13 Mar 2006 14:07:20 GMT</pubDate></item><item><title><![CDATA[Reply to ComboBox Items hinzufügen problem.. on Thu, 16 Mar 2006 12:57:12 GMT]]></title><description><![CDATA[<p>Es kommt aber auf die Höhe an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017494</guid><dc:creator><![CDATA[FAQ]]></dc:creator><pubDate>Thu, 16 Mar 2006 12:57:12 GMT</pubDate></item></channel></rss>