<?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[Höhe einer ComboBox einstellen]]></title><description><![CDATA[<p>Tach,<br />
gibt es irgendeine Möglichkeit die Höhe einer Combo-Box zu verändern? Die ComboBox bleibt trotz veränderter Größe bei einer konstanten Höhe. Mit MeasureItem habe ich nichts erreichen können. Mir ist egal wie groß die Items im aufgeklappten Zustand sind. Ich will die CB nur schrumpfen wenn sie zugeklappt ist. Habe folgendes probiert:</p>
<pre><code class="language-cpp">SetItemHeight(-1, 15);
</code></pre>
<p>Die blöde CB ist aber verdammt stur <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>
<p>Thx,</p>
<p>MaSTaH</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6456/höhe-einer-combobox-einstellen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 05:16:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6456.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jul 2003 13:21:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:21:00 GMT]]></title><description><![CDATA[<p>Tach,<br />
gibt es irgendeine Möglichkeit die Höhe einer Combo-Box zu verändern? Die ComboBox bleibt trotz veränderter Größe bei einer konstanten Höhe. Mit MeasureItem habe ich nichts erreichen können. Mir ist egal wie groß die Items im aufgeklappten Zustand sind. Ich will die CB nur schrumpfen wenn sie zugeklappt ist. Habe folgendes probiert:</p>
<pre><code class="language-cpp">SetItemHeight(-1, 15);
</code></pre>
<p>Die blöde CB ist aber verdammt stur <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>
<p>Thx,</p>
<p>MaSTaH</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31352</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31352</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:24:00 GMT]]></title><description><![CDATA[<p>Hm, ich würde auch gerne meine Töpfe schrumpfen, wenn ich sie in den Schrank stelle. Dann würde ich viel mehr reinbekommen <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/31353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31353</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:24:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:26:00 GMT]]></title><description><![CDATA[<p>Versuchs mal mit MoveWindow (nur so eine Idee)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31354</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:29:00 GMT]]></title><description><![CDATA[<p>Höhöhö <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="😃"
    /> . Ich habe bei Create schon das richtige Rechteck mitgegeben...</p>
<p>EDIT:<br />
MoveWindow funzt auch irgendwie nicht? Gibt es da irgendeinen Style (CBS_FIXEDHEIGHT oder so) der das verhindert. Im Dialog-Editor kann man die Höhe nämlich auch nicht verändern... Ich guck nochmal nach!</p>
<p>[ Dieser Beitrag wurde am 03.07.2003 um 15:36 Uhr von <strong>MaSTaH</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31355</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:42:00 GMT]]></title><description><![CDATA[<p>CBS_NOINTEGRALHEIGHT gibt es. Aber irgendwie funzt das auch nicht so ganz wenn ich den setze. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>EDIT:</p>
<blockquote>
<p><strong>CBS_NOINTEGRALHEIGHT</strong>Specifies that the size of the combo box is exactly the size specified by the application when it created the combo box. Normally, Windows sizes a combo box so that the combo box does not display partial items.</p>
</blockquote>
<p>Er macht das Dinge aber nicht in der Größe die ich bei Create angebe... Maaaan! Wie einem so ne beschissene Combo-Box den Nerv töten kann <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>
<p>[ Dieser Beitrag wurde am 03.07.2003 um 15:45 Uhr von <strong>MaSTaH</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31357</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31357</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:42:00 GMT]]></title><description><![CDATA[<p>Soviel ich weiss, passt sich die Combobox der gewählten Schriftart in der Höhe an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31356</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:45:00 GMT]]></title><description><![CDATA[<p>Das gilt nur für die Aufklappsektion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31358</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:46:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Original erstellt von RenéG:<br />
<strong>Das gilt nur für die Aufklappsektion</strong></p>
</blockquote>
<p>Shice. Was mach ich denn dann? Eigene Combobox-Klasse schreiben? Hmmmm, neee! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/31359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31359</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:46:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:52:00 GMT]]></title><description><![CDATA[<p>Hm, du kennst doch bestimmt die PropertyBrowser wie in VC7 oder VBasic? Die Comboboxen da sind auch selbergeschrieben. Is gar net so schwer, wie man denkt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31360</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31360</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:57:00 GMT]]></title><description><![CDATA[<p>Genau so ein PropertyGrid schreibe ich gerade <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="😉"
    /> . Naja, habs jetzt anders gelöst. Sieht ganz passabel aus. Thx... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/31361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31361</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:57:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 13:59:00 GMT]]></title><description><![CDATA[<p>was hast du den für eine größe in rect (höhe) angegeben ?<br />
info siehe sonst movewindow.</p>
<p>volker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31362</guid><dc:creator><![CDATA[vdittrich]]></dc:creator><pubDate>Thu, 03 Jul 2003 13:59:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 14:03:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/473">@vdittrich</a>: Das Problem ist nicht, dass ich etwas falsches bei Create oder MoveWindow angebe, sondern, dass die ComboBox sich wehrt meine gewünschte Größe anzunehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31363</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 14:03:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 14:05:00 GMT]]></title><description><![CDATA[<p>eine combobox hat wenn man es richtig nimmt drei höhen, welche meinst du denn</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31364</guid><dc:creator><![CDATA[vdittrich]]></dc:creator><pubDate>Thu, 03 Jul 2003 14:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 14:08:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Original erstellt von vdittrich:<br />
<strong>eine combobox hat wenn man es richtig nimmt drei höhen, welche meinst du denn</strong></p>
</blockquote>
<p>Drei? Ich kenn nur 2!<br />
1.) ComboBox auf<br />
2.) ComboBox zu</p>
<p>Ich meine die erste. Kann man aber nicht umsetzen weil Windows dazwischenfunkt. Die Höhe einer ComboBox im <strong>zugeklappten Zustand</strong> kann man anscheinend nicht verändern, sonst würde ich doch nicht danach fragen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31365</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 14:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 14:24:00 GMT]]></title><description><![CDATA[<p>1. SetItemHeight(-1, 15); nur der sogenannte container<br />
2. mit movewindow (kann auch setwindowpos sein) die aufgeklappte combobox<br />
3. ist die differenz aus schrifthöhe zur gesetzten höhe der aufgeklappten combobox (wird im style festgelegt)</p>
<p>volker</p>
<p>[ Dieser Beitrag wurde am 03.07.2003 um 16:25 Uhr von <strong>vdittrich</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31366</guid><dc:creator><![CDATA[vdittrich]]></dc:creator><pubDate>Thu, 03 Jul 2003 14:24:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 14:42:00 GMT]]></title><description><![CDATA[<p>4.) Die Höhe des Rahmens<br />
5.) Die Höhe des Textes<br />
6.) ... <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/31367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31367</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 14:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Thu, 03 Jul 2003 14:44:00 GMT]]></title><description><![CDATA[<p>BTW: Hättest du die vorigen Posts richtig gelesen wüsstest du, dass ich nur die Größe des &quot;Containers&quot; umstellen will....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31368</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Thu, 03 Jul 2003 14:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 06:35:00 GMT]]></title><description><![CDATA[<p>sorry beleidigen muß ich mich nicht lassen, und es wurde in deiner anfrage alles gesagt.</p>
<pre><code class="language-cpp">//pWnd ist pointer von der combobox
  RECT rc; pWnd-&gt;GetWindowRect(&amp;rc);
  pWnd-&gt;GetParent()-&gt;ScreenToClient(&amp;rc);
  //das ist deine neue höhe der aufgeklappten combobox  
  int nHeight=60;
  pWnd-&gt;MoveWindow(rc.left, rc.top, rc.right-rc.left, nHeight, 1);
</code></pre>
<p>volker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31369</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31369</guid><dc:creator><![CDATA[vdittrich]]></dc:creator><pubDate>Fri, 04 Jul 2003 06:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 07:29:00 GMT]]></title><description><![CDATA[<p>Ich will dich nicht beleidigen, aber du redest die ganze Zeit am Thema vorbei. Es geht <strong>nicht</strong> um die aufgeklappte Combobox, sondern um die geschlossene. Und deren Höhe lässt sich so ohne weiteres nicht mit MoveWindow verändern. Meinst du allen Ernstes ich hätte MoveWindow nicht schon lange bevor ich diesen Thread gepostet habe ausprobiert? <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/31370</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31370</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Fri, 04 Jul 2003 07:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 09:30:00 GMT]]></title><description><![CDATA[<p>deine höhe wird definitiv mit SetItemHeight(-1, h) geändert,</p>
<p>aber sobald in combobox alle einträge gelöscht werden bzw. ein neuer eintrag hinzugefügt wird (wenn vorher leer war) muß nachher SetItemHeight(-1, h) neu gesetzt werden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31371</guid><dc:creator><![CDATA[vdittrich]]></dc:creator><pubDate>Fri, 04 Jul 2003 09:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 10:03:00 GMT]]></title><description><![CDATA[<p>Ich mache das nachdem ich die Einträge hinzufüge, aber es tut sich nichts.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31372</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31372</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Fri, 04 Jul 2003 10:03:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 10:37:00 GMT]]></title><description><![CDATA[<p>das geht, habs probiert</p>
<pre><code class="language-cpp">((CComboBox*)pWnd)-&gt;SetItemHeight(-1, 28);
  //::SendMessage(pWnd-&gt;m_hWnd, CB_SETITEMHEIGHT, -1, 30);
</code></pre>
<p>aber dannach z.b größe ändern</p>
<pre><code class="language-cpp">RECT rc; pWnd-&gt;GetWindowRect(&amp;rc);
  pWnd-&gt;GetParent()-&gt;ScreenToClient(&amp;rc); 
  int nHeight=60;
  pWnd-&gt;MoveWindow(rc.left, rc.top, rc.right-rc.left, nHeight, 1);
</code></pre>
<p>und schon ist die alte größe mit standart 15 pixel wieder hergestellt,<br />
jetzt noch mal</p>
<pre><code class="language-cpp">((CComboBox*)pWnd)-&gt;SetItemHeight(-1, 28);
</code></pre>
<p>wieder 28 px. du wirst deine höhe irgendwo im ablauf anders setzen müssen,<br />
kenn dein code nicht, aber bei mir wird die höhe in OnInitDialog() gesetzt und das funktioniert</p>
<p>volker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31373</guid><dc:creator><![CDATA[vdittrich]]></dc:creator><pubDate>Fri, 04 Jul 2003 10:37:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 10:50:00 GMT]]></title><description><![CDATA[<p>Das Problem ist: Ich will das Ding kleiner machen, weil es in ein PropertyGrid soll (wie in <a href="http://VS.NET" rel="nofollow">VS.NET</a>). Das mag der anscheinend nicht so gerne... <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="😞"
    /> Naja, werd wohl nicht darum kommen mir ne eigene ComboBox zu schreiben. Wollte mir den Aufwand eigentlich sparen, aber was solls. Thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31374</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Fri, 04 Jul 2003 10:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 11:00:00 GMT]]></title><description><![CDATA[<p>das geht schon, es ist nur eine frage wo im ablauf du die höhe der combobox setzt und was danach passiert. die nachfolgende kombination funktioniert doch.</p>
<pre><code class="language-cpp">// position ändern
  int x=1;
  int y=1;
  RECT rc; pWnd-&gt;GetWindowRect(&amp;rc);
  pWnd-&gt;GetParent()-&gt;ScreenToClient(&amp;rc); 
  pWnd-&gt;MoveWindow(rc.left+x, rc.top+y, rc.right-rc.left, rc.bottom-rc.left, 1);
  //höhe neu setzen
  ((CComboBox*)pWnd)-&gt;SetItemHeight(-1, 28);
</code></pre>
<p>und alles ist ok (nur eine frage der ablaufsteuerung) -&gt; combobox selbst schreiben viel spaß</p>
<p>volker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31375</guid><dc:creator><![CDATA[vdittrich]]></dc:creator><pubDate>Fri, 04 Jul 2003 11:00:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 11:38:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Original erstellt von vdittrich:<br />
**das geht schon, es ist nur eine frage wo im ablauf du die höhe der combobox setzt und was danach passiert. die nachfolgende kombination funktioniert doch.<br />
**</p>
</blockquote>
<p>Also ich weiß nicht wie es bei dir ist. Bei mir funzt es nicht das Ding unter Standardhöhe zu schrumpfen. So mache ich es:</p>
<pre><code class="language-cpp">// ComboBox erstellen
        Create(WS_CHILD | WS_VSCROLL | CBS_SORT | CBS_DROPDOWNLIST,
            m_rcValue, static_cast&lt;CWnd*&gt;(m_pView), 0);
        SetItemHeight(-1, m_rcValue.Height());
</code></pre>
<blockquote>
<p>Original erstellt von vdittrich:<br />
**-&gt; combobox selbst schreiben viel spaß<br />
**</p>
</blockquote>
<p>Ach, so schwer ist das garnicht. Eine Edit, einmal DrawFrameControl für den Button und ne popup-Liste. Naja, nicht schwer aber lästig... <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>
<p>[ Dieser Beitrag wurde am 04.07.2003 um 13:41 Uhr von <strong>MaSTaH</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31376</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31376</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Fri, 04 Jul 2003 11:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to Höhe einer ComboBox einstellen on Fri, 04 Jul 2003 11:51:00 GMT]]></title><description><![CDATA[<p>standart inst 15 px</p>
<p>((CComboBox*)pWnd)-&gt;SetItemHeight(-1, 8); = 8 px funktioniert doch</p>
<pre><code class="language-cpp">Create(WS_CHILD | WS_VSCROLL | CBS_SORT | CBS_DROPDOWNLIST,
            m_rcValue, static_cast&lt;CWnd*&gt;(m_pView), 0);

SetItemHeight(-1, m_rcValue.Height()); // was sollte hier geändert werden
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/31377</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31377</guid><dc:creator><![CDATA[vdittrich]]></dc:creator><pubDate>Fri, 04 Jul 2003 11:51:00 GMT</pubDate></item></channel></rss>