<?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[MoveWindow und Scrollbars]]></title><description><![CDATA[<p>Mit folgenden Code plaziere ich drei Comboboxen unter meiner Liste</p>
<pre><code class="language-cpp">m_Liste.GetClientRect(&amp;ct);
long w = ct.Width()/3-1;
ct.TopLeft().y = ct.BottomRight().y+28;
ct.BottomRight().y = ct.BottomRight().y+300;
ct.TopLeft().x +=10;
ct.BottomRight().x = w;
m_SPAuswahl.MoveWindow(&amp;ct);

m_Liste.GetClientRect(&amp;ct);
ct.TopLeft().y = ct.BottomRight().y+28;
ct.TopLeft().x = w;
ct.BottomRight().x = 2*w;
ct.BottomRight().y = ct.BottomRight().y+100;	
m_CBDatum.MoveWindow(&amp;ct);

m_Liste.GetClientRect(&amp;ct);
ct.TopLeft().y = ct.BottomRight().y+28;
ct.TopLeft().x = 2*w;
ct.BottomRight().x = 3*w;
ct.BottomRight().y = ct.BottomRight().y+150;	
m_Status_c.MoveWindow(&amp;ct);
</code></pre>
<p>Das funktioniert meistens auch,aber wenn die Liste Scrollbalken hat,rutschen die Komboboxen halb unter die Liste.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/44131/movewindow-und-scrollbars</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 07:58:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/44131.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Jul 2003 12:34:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Mon, 28 Jul 2003 12:34:32 GMT]]></title><description><![CDATA[<p>Mit folgenden Code plaziere ich drei Comboboxen unter meiner Liste</p>
<pre><code class="language-cpp">m_Liste.GetClientRect(&amp;ct);
long w = ct.Width()/3-1;
ct.TopLeft().y = ct.BottomRight().y+28;
ct.BottomRight().y = ct.BottomRight().y+300;
ct.TopLeft().x +=10;
ct.BottomRight().x = w;
m_SPAuswahl.MoveWindow(&amp;ct);

m_Liste.GetClientRect(&amp;ct);
ct.TopLeft().y = ct.BottomRight().y+28;
ct.TopLeft().x = w;
ct.BottomRight().x = 2*w;
ct.BottomRight().y = ct.BottomRight().y+100;	
m_CBDatum.MoveWindow(&amp;ct);

m_Liste.GetClientRect(&amp;ct);
ct.TopLeft().y = ct.BottomRight().y+28;
ct.TopLeft().x = 2*w;
ct.BottomRight().x = 3*w;
ct.BottomRight().y = ct.BottomRight().y+150;	
m_Status_c.MoveWindow(&amp;ct);
</code></pre>
<p>Das funktioniert meistens auch,aber wenn die Liste Scrollbalken hat,rutschen die Komboboxen halb unter die Liste.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/319540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/319540</guid><dc:creator><![CDATA[Andorxor]]></dc:creator><pubDate>Mon, 28 Jul 2003 12:34:32 GMT</pubDate></item><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Wed, 30 Jul 2003 06:41:59 GMT]]></title><description><![CDATA[<p>Hoch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/320745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/320745</guid><dc:creator><![CDATA[Andorxor]]></dc:creator><pubDate>Wed, 30 Jul 2003 06:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Wed, 30 Jul 2003 06:56:30 GMT]]></title><description><![CDATA[<p>Hoch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/320751</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/320751</guid><dc:creator><![CDATA[Andorxor]]></dc:creator><pubDate>Wed, 30 Jul 2003 06:56:30 GMT</pubDate></item><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Wed, 30 Jul 2003 08:09:46 GMT]]></title><description><![CDATA[<p>Hoch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/320793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/320793</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Wed, 30 Jul 2003 08:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Wed, 30 Jul 2003 08:11:14 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Sorry für das da oben... <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="😃"
    /><br />
Mal im Ernst:<br />
füllst du erst die Liste und danach kommt dein geposteter Code ? Versuch es mal anders herum: erst die ComboBoxen plazieren und dann die Liste füllen.</p>
<p>Tschüss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/320797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/320797</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Wed, 30 Jul 2003 08:11:14 GMT</pubDate></item><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Wed, 30 Jul 2003 08:25:35 GMT]]></title><description><![CDATA[<p>Übrigens (fällt mir gerade noch auf):<br />
die Zeile m_Liste.GetClientRect(&amp;ct); brauchst du nur einmal, die beiden anderen identischen kannst du heraus nehmen. Ebenso die Zeile ct.TopLeft().y = ct.BottomRight().y+28; (die Höhe ändert sich ja nicht mehr). Das gleiche gilt eigentlich auch für den unteren Rand... Keine Ahnung, warum du da verschiedene Werte hast...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/320810</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/320810</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Wed, 30 Jul 2003 08:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Wed, 30 Jul 2003 08:37:20 GMT]]></title><description><![CDATA[<p>Aber WIESO 'GetClientRect'? Laut Doku liefert dieses Rechteck die Abmessungen innerhalb des Listenfensters. Logischerweise ist diese geringer, wenn das Listenfenster Scrollbalken bekommt.<br />
Normalerweise nimmt man dafür GetWindowRect, und wandelt die Koordinaten über ScreenToClient in die Koordinaten des Parents um.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/320820</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/320820</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Wed, 30 Jul 2003 08:37:20 GMT</pubDate></item><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Wed, 30 Jul 2003 08:41:34 GMT]]></title><description><![CDATA[<p>Das zweite hoch ist mir wegen eines Fehler reingerutscht.</p>
<p>Ich rufe diesen Code bei OnInit,OnSize und beim drücken eines Button(der Button macht eine weitere Liste an der Seite sichtbar,daher müssen die ComboBoxen neu positioniert werden.)In die Liste laufen die ganze Zeit neue Einträge rein.</p>
<p>Die ComboBoxen sind verschieden hoch,weil in einer 10-100 Einträge sind in der zweiten 5 und in der letzten 3.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/320828</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/320828</guid><dc:creator><![CDATA[Andorxor]]></dc:creator><pubDate>Wed, 30 Jul 2003 08:41:34 GMT</pubDate></item><item><title><![CDATA[Reply to MoveWindow und Scrollbars on Wed, 30 Jul 2003 08:53:51 GMT]]></title><description><![CDATA[<p>Vielen Dank, RenéG,jetzt läuft es.<br />
Aber WIESO 'GetClientRect'? -Weil ich blöd bin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/320841</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/320841</guid><dc:creator><![CDATA[Andorxor]]></dc:creator><pubDate>Wed, 30 Jul 2003 08:53:51 GMT</pubDate></item></channel></rss>