<?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[Probleme mit einer ComboBox]]></title><description><![CDATA[<p>Hi Folks !!<br />
Ich hab ein Problem. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> Nun ja das hier ja jeder abver ich bin mit den Nerven runter. <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">LRESULT CALLBACK TL_SettingsProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
{   
    LRESULT ret = 0;
    switch (message) 
    { 
    case WM_INITDIALOG: 
        {
            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_RESETCONTENT, 0, 0);
            TL_LOG(LOG_VERBOSE, &quot;TL_SettingsProc-&gt;WM_INITDIALOG&quot;);

            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_ADDSTRING, 0, (LPARAM)(&quot;1024x768@32&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_ADDSTRING, 0, (LPARAM)(&quot;1024x768@16&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_ADDSTRING, 0, (LPARAM)(&quot;800x600@32&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_ADDSTRING, 0, (LPARAM)(&quot;800x600@16&quot;)); 

            SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_ADDSTRING, 0, (LPARAM)(&quot;Low&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_ADDSTRING, 0, (LPARAM)(&quot;Medium&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_ADDSTRING, 0, (LPARAM)(&quot;High&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_ADDSTRING, 0, (LPARAM)(&quot;Highest&quot;));

            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_SETCURSEL, 0, (LPARAM)0);

            TL_LOG(LOG_VERBOSE, &quot;Count Entrys in IDC_CMB_RES: %i&quot;,
                   (int)SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_GETCOUNT, 0,0));
            TL_LOG(LOG_VERBOSE, &quot;Count Entrys in IDC_CMB_DETAILS: %i&quot;,
                   (int)SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_GETCOUNT, 0,0));

            return TRUE;
        }
    case WM_COMMAND: 
        {
            switch (LOWORD(wParam)) 
            {
            case IDOK:
                {
                    TL_LOG(LOG_VERBOSE, TL_GetString(IDS_DIALOG_OK));
                    // TODO: Read data from Combobox not static
                    vid_settings.width = 800;
                    vid_settings.height = 600;                    
                    EndDialog(hwndDlg, LOWORD(wParam));
                    return TRUE;
                    break;
                }
            case IDCANCEL:
                {
                    TL_LOG(LOG_VERBOSE, TL_GetString(IDS_DIALOG_CANCEL));
                    CancelledDlg = true;
                    EndDialog(hwndDlg, LOWORD(wParam));                    
                    return FALSE;
                    break;
                }
            }//wparam
        }//wmcommand
    }//message

    return TRUE;
}
</code></pre>
<p>Wie man ja sieht frage ich die Anzahl der Einträge ab und speicher sie in einem HTML Logbuch. Dort steht dann 4 Einträge. Leider wird aber nur einer angezeigt ??<br />
Wenn ich auf die Combobox kein CB_SETCURSEL ausühre wird gar nichts angezeigt !! Auch CB_SETITEMDATA zum Daten setzen hilft nix. Hat jemand ne Idee was ich falsch mache ??<br />
Hier noch die Einträge zu den Comboxen aus dem RC File:</p>
<pre><code>BEGIN
    COMBOBOX        IDC_CMB_RES,174,48,126,12,CBS_DROPDOWNLIST | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_CMB_DETAILS,174,78,126,12,CBS_DROPDOWNLIST | 
                    CBS_SORT | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_CMB_ANTIALIASING,174,108,126,12,CBS_DROPDOWNLIST | 
                    CBS_SORT | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_CMB_ADAPTER,174,18,126,12,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
END
</code></pre>
<p>Schönen Dank schon mal !!<br />
rya.<br />
Scorcher24</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/96205/probleme-mit-einer-combobox</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 23:51:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/96205.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Dec 2004 16:44:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Wed, 29 Dec 2004 16:44:10 GMT]]></title><description><![CDATA[<p>Hi Folks !!<br />
Ich hab ein Problem. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> Nun ja das hier ja jeder abver ich bin mit den Nerven runter. <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">LRESULT CALLBACK TL_SettingsProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
{   
    LRESULT ret = 0;
    switch (message) 
    { 
    case WM_INITDIALOG: 
        {
            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_RESETCONTENT, 0, 0);
            TL_LOG(LOG_VERBOSE, &quot;TL_SettingsProc-&gt;WM_INITDIALOG&quot;);

            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_ADDSTRING, 0, (LPARAM)(&quot;1024x768@32&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_ADDSTRING, 0, (LPARAM)(&quot;1024x768@16&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_ADDSTRING, 0, (LPARAM)(&quot;800x600@32&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_ADDSTRING, 0, (LPARAM)(&quot;800x600@16&quot;)); 

            SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_ADDSTRING, 0, (LPARAM)(&quot;Low&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_ADDSTRING, 0, (LPARAM)(&quot;Medium&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_ADDSTRING, 0, (LPARAM)(&quot;High&quot;));
            SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_ADDSTRING, 0, (LPARAM)(&quot;Highest&quot;));

            SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_SETCURSEL, 0, (LPARAM)0);

            TL_LOG(LOG_VERBOSE, &quot;Count Entrys in IDC_CMB_RES: %i&quot;,
                   (int)SendDlgItemMessage(hwndDlg, IDC_CMB_RES, CB_GETCOUNT, 0,0));
            TL_LOG(LOG_VERBOSE, &quot;Count Entrys in IDC_CMB_DETAILS: %i&quot;,
                   (int)SendDlgItemMessage(hwndDlg, IDC_CMB_DETAILS, CB_GETCOUNT, 0,0));

            return TRUE;
        }
    case WM_COMMAND: 
        {
            switch (LOWORD(wParam)) 
            {
            case IDOK:
                {
                    TL_LOG(LOG_VERBOSE, TL_GetString(IDS_DIALOG_OK));
                    // TODO: Read data from Combobox not static
                    vid_settings.width = 800;
                    vid_settings.height = 600;                    
                    EndDialog(hwndDlg, LOWORD(wParam));
                    return TRUE;
                    break;
                }
            case IDCANCEL:
                {
                    TL_LOG(LOG_VERBOSE, TL_GetString(IDS_DIALOG_CANCEL));
                    CancelledDlg = true;
                    EndDialog(hwndDlg, LOWORD(wParam));                    
                    return FALSE;
                    break;
                }
            }//wparam
        }//wmcommand
    }//message

    return TRUE;
}
</code></pre>
<p>Wie man ja sieht frage ich die Anzahl der Einträge ab und speicher sie in einem HTML Logbuch. Dort steht dann 4 Einträge. Leider wird aber nur einer angezeigt ??<br />
Wenn ich auf die Combobox kein CB_SETCURSEL ausühre wird gar nichts angezeigt !! Auch CB_SETITEMDATA zum Daten setzen hilft nix. Hat jemand ne Idee was ich falsch mache ??<br />
Hier noch die Einträge zu den Comboxen aus dem RC File:</p>
<pre><code>BEGIN
    COMBOBOX        IDC_CMB_RES,174,48,126,12,CBS_DROPDOWNLIST | 
                    CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_CMB_DETAILS,174,78,126,12,CBS_DROPDOWNLIST | 
                    CBS_SORT | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_CMB_ANTIALIASING,174,108,126,12,CBS_DROPDOWNLIST | 
                    CBS_SORT | WS_VSCROLL | WS_TABSTOP
    COMBOBOX        IDC_CMB_ADAPTER,174,18,126,12,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
END
</code></pre>
<p>Schönen Dank schon mal !!<br />
rya.<br />
Scorcher24</p>
]]></description><link>https://www.c-plusplus.net/forum/post/682764</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682764</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 29 Dec 2004 16:44:10 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Wed, 29 Dec 2004 16:51:50 GMT]]></title><description><![CDATA[<p>ändere die höhe der box mal von 12 auf bsp. 500</p>
<p>forensuche --&gt; combobox höhe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/682772</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682772</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 29 Dec 2004 16:51:50 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Wed, 29 Dec 2004 17:03:06 GMT]]></title><description><![CDATA[<p>Ja aber wenn ich das Ding grösser mach schauts doch doof aus. Oder was soll das bringen ??<br />
rya.<br />
Scorcher24</p>
]]></description><link>https://www.c-plusplus.net/forum/post/682779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682779</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 29 Dec 2004 17:03:06 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Wed, 29 Dec 2004 17:03:57 GMT]]></title><description><![CDATA[<p>Probiers halt mal. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/682781</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682781</guid><dc:creator><![CDATA[Christoph]]></dc:creator><pubDate>Wed, 29 Dec 2004 17:03:57 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Thu, 30 Dec 2004 13:19:52 GMT]]></title><description><![CDATA[<p>Hey Mods!<br />
ich bewundere eure Geduld!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/683166</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/683166</guid><dc:creator><![CDATA[nate7]]></dc:creator><pubDate>Thu, 30 Dec 2004 13:19:52 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Thu, 30 Dec 2004 16:37:50 GMT]]></title><description><![CDATA[<p>nate7 schrieb:</p>
<blockquote>
<p>Hey Mods!<br />
ich bewundere eure Geduld!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
</blockquote>
<p>Was soll das heissen ?? Ich habe die Suche verwendet und nix gefunden.</p>
<p>Aber Ihr hattet recht.... Habt Ihr irgendwo ne erklärung warum das so ist ??<br />
Und warum zum Henker kann ne IDE für die ich 150€ bezahlt habe sowas nicht automatisch machen ?? Wer hat sich denn den Käse ausgedacht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /> Also ich glaube ich lager die Konfiguration (dafür war der Dialog) doch lieber wieder in ein wxWindows Programm aus.... <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="😞"
    /><br />
thx for help.<br />
rya.<br />
Scorcher24</p>
]]></description><link>https://www.c-plusplus.net/forum/post/683292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/683292</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Thu, 30 Dec 2004 16:37:50 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Thu, 30 Dec 2004 16:47:04 GMT]]></title><description><![CDATA[<p>Scorcher24 schrieb:</p>
<blockquote>
<p>Aber Ihr hattet recht.... Habt Ihr irgendwo ne erklärung warum das so ist ??</p>
</blockquote>
<p>irgendwo in der msdn, hab es auf die schnelle nicht gefunden<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/comboboxes/comboboxes.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/comboboxes/comboboxes.asp</a></p>
<p>Scorcher24 schrieb:</p>
<blockquote>
<p>Und warum zum Henker kann ne IDE für die ich 150€ bezahlt habe sowas nicht automatisch machen ??</p>
</blockquote>
<p>was hat das mit der ide zu tun? und du hättest ja auch ne andere nehmen können <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/683300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/683300</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 30 Dec 2004 16:47:04 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Thu, 30 Dec 2004 16:59:42 GMT]]></title><description><![CDATA[<p>miller_m schrieb:</p>
<blockquote>
<p>was hat das mit der ide zu tun? und du hättest ja auch ne andere nehmen können <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>
</blockquote>
<p>Das ist richtig, aber ich dachte halt, dass Visual C++ Standard 2003 ne gute Wahl für die Windows Entwicklung ist. Und ne IDE die fähig ist, das RC-File zu schreiben sollte sowas auch berücksichtigen.....<br />
Aber naja, so kann man sich täuschen....<br />
rya.<br />
Scorcher24</p>
]]></description><link>https://www.c-plusplus.net/forum/post/683317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/683317</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Thu, 30 Dec 2004 16:59:42 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit einer ComboBox on Thu, 30 Dec 2004 17:08:57 GMT]]></title><description><![CDATA[<p>eben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/683322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/683322</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 30 Dec 2004 17:08:57 GMT</pubDate></item></channel></rss>