<?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[LBS_MULTIPLESEL zur laufzeit ändern]]></title><description><![CDATA[<p>Ich habe ein listbox, die ich einmal mit LBS_MULTIPLESEL(mehrfachauswahl)<br />
brauche dann wiederum ohne.<br />
Habe es bereits mit 'SetWindowLong' versucht.</p>
<p>Vieleicht hat jemand eine Idee.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/95949/lbs_multiplesel-zur-laufzeit-ändern</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 12:05:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/95949.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Dec 2004 04:34:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LBS_MULTIPLESEL zur laufzeit ändern on Sun, 26 Dec 2004 04:34:24 GMT]]></title><description><![CDATA[<p>Ich habe ein listbox, die ich einmal mit LBS_MULTIPLESEL(mehrfachauswahl)<br />
brauche dann wiederum ohne.<br />
Habe es bereits mit 'SetWindowLong' versucht.</p>
<p>Vieleicht hat jemand eine Idee.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/680859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/680859</guid><dc:creator><![CDATA[coste]]></dc:creator><pubDate>Sun, 26 Dec 2004 04:34:24 GMT</pubDate></item><item><title><![CDATA[Reply to LBS_MULTIPLESEL zur laufzeit ändern on Sun, 26 Dec 2004 08:35:54 GMT]]></title><description><![CDATA[<p>Sollte sich doch eigentlich auch über SetWindowLong machen lassen, oder?! Zeig' doch mal deine bisherigen Versuche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/680869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/680869</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 26 Dec 2004 08:35:54 GMT</pubDate></item><item><title><![CDATA[Reply to LBS_MULTIPLESEL zur laufzeit ändern on Mon, 27 Dec 2004 01:52:44 GMT]]></title><description><![CDATA[<p>DWORD dw=GetWindowLong(hwnd,GWL_STYLE) ;</p>
<p>SetWindowLong (hwnd, GWL_STYLE,dw | LBS_MULTIPLESEL) ;</p>
<p>danke für die Antword Coste</p>
]]></description><link>https://www.c-plusplus.net/forum/post/681398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/681398</guid><dc:creator><![CDATA[coste]]></dc:creator><pubDate>Mon, 27 Dec 2004 01:52:44 GMT</pubDate></item><item><title><![CDATA[Reply to LBS_MULTIPLESEL zur laufzeit ändern on Thu, 09 Jun 2005 22:26:05 GMT]]></title><description><![CDATA[<p>hey <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>
<p>Wie kann man denn dann wieder das Style entfernen?</p>
<pre><code class="language-cpp">DWORD dw=GetWindowLong(hwnd,GWL_STYLE) ;

dw = dw - LBS_MULTIPLESEL;

SetWindowLong (hwnd, GWL_STYLE,dw );
</code></pre>
<p>wird ja warscheinlich falsch sein. Wie mache ich ein OR rückgängig, entferne also LBS_MULTIPLESEL daraus???</p>
<p>Danke &amp; Gruss,<br />
~code_pilot</p>
]]></description><link>https://www.c-plusplus.net/forum/post/806265</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/806265</guid><dc:creator><![CDATA[code_pilot]]></dc:creator><pubDate>Thu, 09 Jun 2005 22:26:05 GMT</pubDate></item><item><title><![CDATA[Reply to LBS_MULTIPLESEL zur laufzeit ändern on Fri, 10 Jun 2005 04:13:35 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">dw &amp; ~LBS_MULTIPLESEL;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/806293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/806293</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 10 Jun 2005 04:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to LBS_MULTIPLESEL zur laufzeit ändern on Fri, 10 Jun 2005 11:36:02 GMT]]></title><description><![CDATA[<p>Hmmm warum kann ich dann nicht die Scrollbars sowie das automatische scrollen eines multiline Edit-Controls entfernen?</p>
<p>Meine Default-Styles des Fensters:</p>
<pre><code class="language-cpp">//Creating the Edit Controls
hEdit = CreateWindowEx(WS_EX_CLIENTEDGE,&quot;edit&quot;, &quot;Hello World\r\nThis is my little program.&quot;, WS_CHILD | WS_VISIBLE | ES_LEFT |
WS_VSCROLL | WS_HSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE,
1, 1, 342, 180, hMain, (HMENU) EDIT, hInstance, NULL) ;
</code></pre>
<p>Und jetzt will ich sie entfernen:</p>
<pre><code class="language-cpp">//Unset the scrollbars
DWORD dw = GetWindowLong(hEdit ,GWL_STYLE);
dw = dw &amp; ~WS_VSCROLL &amp; ~WS_HSCROLL &amp; ~ES_AUTOVSCROLL &amp; ~ES_AUTOHSCROLL;

SetWindowLong( hEdit , GWL_STYLE, dw);
InvalidateRect( hEdit , NULL, TRUE);
</code></pre>
<p>Hmm?? Zwar bleiben die Scrollbars &quot;ausgegraut&quot; nachdem ich das gemacht habe, aber sie verschwinden nicht, und der Text, wenn er über das Zeilenende hinausschießt, bricht nicht um, was aber normalerweise der Fall ist wenn ich diese Styles (WS_VSCROLL | WS_HSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL) nicht beim Erstellen mitübergebe <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>Wisst ihr da ne Lösung?</p>
<p>Gruss,<br />
~code_pilot</p>
]]></description><link>https://www.c-plusplus.net/forum/post/806592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/806592</guid><dc:creator><![CDATA[code_pilot]]></dc:creator><pubDate>Fri, 10 Jun 2005 11:36:02 GMT</pubDate></item><item><title><![CDATA[Reply to LBS_MULTIPLESEL zur laufzeit ändern on Sun, 12 Jun 2005 01:46:12 GMT]]></title><description><![CDATA[<p>Man kann LBS_MULTIPLESEL und auch andere, spezielle Styles überhaupt nicht ändern.</p>
<blockquote>
<p>To create a list box by using the CreateWindow or CreateWindowEx function, use the LISTBOX class, appropriate window style constants, and the following style constants to define the list box. After the control has been created, these styles cannot be modified, except as noted.</p>
</blockquote>
<p>Eigentlich schade. <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/807370</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/807370</guid><dc:creator><![CDATA[code_pilot]]></dc:creator><pubDate>Sun, 12 Jun 2005 01:46:12 GMT</pubDate></item></channel></rss>