<?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[Client-Area eines Fensters feststellen]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich brauche die Position und die Größe der Client-Area eines Fensters. Die Funktion GetClientRect hilft mir leider nicht weiter.</p>
<p>Dazu ein Zitat aus der MSDN: &quot;Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).&quot;</p>
<p>Was soll das? Die Funktion soll ja gerade das Client-Rect feststellen. Und dann werden die Koordinaten relativ zur Client-Position zurückgegeben, also gerade zu dem Wert, den ich nicht kenne und eigentlich wissen will? <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="🙄"
    /> Ich komme mir irgendwie ver*****t vor. <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>Kennt jemand eventuell eine Funktion mit der man das wirklich rausfinden kann? Die Fensterposition alleine bringt mir nichts, weil ja aufgrund der individuell einstellbaren Titelleistenhöhe die Client-Area stark variieren kann.</p>
<p>Danke schonmal!</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/153682/client-area-eines-fensters-feststellen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 08:33:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/153682.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Jul 2006 16:20:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Client-Area eines Fensters feststellen on Wed, 19 Jul 2006 16:20:48 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich brauche die Position und die Größe der Client-Area eines Fensters. Die Funktion GetClientRect hilft mir leider nicht weiter.</p>
<p>Dazu ein Zitat aus der MSDN: &quot;Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).&quot;</p>
<p>Was soll das? Die Funktion soll ja gerade das Client-Rect feststellen. Und dann werden die Koordinaten relativ zur Client-Position zurückgegeben, also gerade zu dem Wert, den ich nicht kenne und eigentlich wissen will? <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="🙄"
    /> Ich komme mir irgendwie ver*****t vor. <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>Kennt jemand eventuell eine Funktion mit der man das wirklich rausfinden kann? Die Fensterposition alleine bringt mir nichts, weil ja aufgrund der individuell einstellbaren Titelleistenhöhe die Client-Area stark variieren kann.</p>
<p>Danke schonmal!</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100525</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100525</guid><dc:creator><![CDATA[C_R]]></dc:creator><pubDate>Wed, 19 Jul 2006 16:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to Client-Area eines Fensters feststellen on Wed, 19 Jul 2006 16:36:48 GMT]]></title><description><![CDATA[<p>Ma... junge... mit der Funktion hast de schonmal die Breite und Höhe... und bei nem DC reichen diese Koordinaten normal auch aus <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>An sonnsten</p>
<pre><code class="language-cpp">::RECT rcClient;
::GetClientRect(m_hWnd, &amp;rcClient);
::ClientToScreen(m_hWnd, &amp;rcClient);
</code></pre>
<p><strong>Referenzen:</strong><br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/cordspac_2tny.asp" rel="nofollow">ClientToScreen</a><br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getclientrect.asp" rel="nofollow">GetClientRect</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100533</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 19 Jul 2006 16:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to Client-Area eines Fensters feststellen on Wed, 19 Jul 2006 17:01:28 GMT]]></title><description><![CDATA[<p>Danke, ClientToScreen ist was ich gesucht habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100540</guid><dc:creator><![CDATA[C_R]]></dc:creator><pubDate>Wed, 19 Jul 2006 17:01:28 GMT</pubDate></item></channel></rss>