<?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[Problem mit ComboBox]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ich versuche einen vorhandenen String mit SelectString in einer ComboBox zu selektieren. Es klappt aber irgendwie nicht. Die Combobox ist auf einem Child Dialog, der auf einer PropertySheet angezeigt wird.<br />
Ich versuche im OnInitDialog Event des Childdialogs mit</p>
<pre><code class="language-cpp">CComboBox *pCmb = (CComboBox*) GetDlgItem(IDC_COMBO1);
pCmb-&gt;SelectString(-1, &quot;String&quot;);
</code></pre>
<p>das Item &quot;String&quot; zu selektieren. Weiß jemand warum das nicht klappt ?<br />
&quot;String&quot; ist definitv vorhanden und korrekt geschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/84271/problem-mit-combobox</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 00:35:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/84271.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Aug 2004 16:06:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit ComboBox on Sat, 28 Aug 2004 16:06:40 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ich versuche einen vorhandenen String mit SelectString in einer ComboBox zu selektieren. Es klappt aber irgendwie nicht. Die Combobox ist auf einem Child Dialog, der auf einer PropertySheet angezeigt wird.<br />
Ich versuche im OnInitDialog Event des Childdialogs mit</p>
<pre><code class="language-cpp">CComboBox *pCmb = (CComboBox*) GetDlgItem(IDC_COMBO1);
pCmb-&gt;SelectString(-1, &quot;String&quot;);
</code></pre>
<p>das Item &quot;String&quot; zu selektieren. Weiß jemand warum das nicht klappt ?<br />
&quot;String&quot; ist definitv vorhanden und korrekt geschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/593952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/593952</guid><dc:creator><![CDATA[HaJo.]]></dc:creator><pubDate>Sat, 28 Aug 2004 16:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit ComboBox on Sat, 28 Aug 2004 16:15:52 GMT]]></title><description><![CDATA[<p>Versuch mal, als ersten Parameter 0 zu übergeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/593965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/593965</guid><dc:creator><![CDATA[mkcore]]></dc:creator><pubDate>Sat, 28 Aug 2004 16:15:52 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit ComboBox on Sat, 28 Aug 2004 17:45:15 GMT]]></title><description><![CDATA[<p>mkcore schrieb:</p>
<blockquote>
<p>Versuch mal, als ersten Parameter 0 zu übergeben.</p>
</blockquote>
<p>Das hilft leider auch nichts. Laut MSDN ist -1 ja auch ein &quot;gültiger&quot; Wert.<br />
Keiner einen Rat ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/594057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/594057</guid><dc:creator><![CDATA[HaJo.]]></dc:creator><pubDate>Sat, 28 Aug 2004 17:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit ComboBox on Sat, 28 Aug 2004 17:46:59 GMT]]></title><description><![CDATA[<p>welchen wert gibt der aufruf denn zurück?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/594060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/594060</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Sat, 28 Aug 2004 17:46:59 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit ComboBox on Sun, 29 Aug 2004 08:14:09 GMT]]></title><description><![CDATA[<p>Sovok schrieb:</p>
<blockquote>
<p>welchen wert gibt der aufruf denn zurück?</p>
</blockquote>
<p>Der Rückgabewert ist CB_ERR.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/594268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/594268</guid><dc:creator><![CDATA[HaJo.]]></dc:creator><pubDate>Sun, 29 Aug 2004 08:14:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit ComboBox on Sun, 29 Aug 2004 12:33:38 GMT]]></title><description><![CDATA[<p>dann hadders nicht gefunden.</p>
<p>also ich suche in meinem prog genau auf die gleiche weise nach einem string und hatte da keine probleme.<br />
irgendwas scheint in deiner programmstruktur nicht zu stimmen.<br />
bist du dir 100% sicher, dass in der combo schon was drinsteht?<br />
lass dir am besten mal vor SelectString() die anzahl der items ausgeben.</p>
<p>Esco</p>
]]></description><link>https://www.c-plusplus.net/forum/post/594453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/594453</guid><dc:creator><![CDATA[Esco]]></dc:creator><pubDate>Sun, 29 Aug 2004 12:33:38 GMT</pubDate></item></channel></rss>