<?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[Relative Steuerelement-Koordinaten]]></title><description><![CDATA[<pre><code class="language-cpp">RECT temp;      //für steuerelement
RECT temp2;    //für mutterfenster
GetClientRect(hMutter,&amp;temp2);
GetWindowRect(hSteuerelement,&amp;temp);
int top = (((int)temp.top)-((int)temp2.bottom-steuerelement.height()));
</code></pre>
<p>in 'top' ist leider ein stets zu großer Wert. Es muss in top die relative x koordinate des steuerelements sein. Ist aber nicht. Wo liegt das Problem?</p>
<p>HINWEIS: GetClientrect() liefert absolute Koordinaten des<br />
'Standard-Zeichenbereichs' des Mutterfensters.<br />
GetWindowRect liefert absolute Koordinaten des Steuerelements. (screen-coordinates)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/75807/relative-steuerelement-koordinaten</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 01:14:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/75807.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Jun 2004 11:24:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Relative Steuerelement-Koordinaten on Fri, 04 Jun 2004 20:54:37 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">RECT temp;      //für steuerelement
RECT temp2;    //für mutterfenster
GetClientRect(hMutter,&amp;temp2);
GetWindowRect(hSteuerelement,&amp;temp);
int top = (((int)temp.top)-((int)temp2.bottom-steuerelement.height()));
</code></pre>
<p>in 'top' ist leider ein stets zu großer Wert. Es muss in top die relative x koordinate des steuerelements sein. Ist aber nicht. Wo liegt das Problem?</p>
<p>HINWEIS: GetClientrect() liefert absolute Koordinaten des<br />
'Standard-Zeichenbereichs' des Mutterfensters.<br />
GetWindowRect liefert absolute Koordinaten des Steuerelements. (screen-coordinates)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/533092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/533092</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Fri, 04 Jun 2004 20:54:37 GMT</pubDate></item><item><title><![CDATA[Reply to Relative Steuerelement-Koordinaten on Fri, 04 Jun 2004 11:32:19 GMT]]></title><description><![CDATA[<p>ich vermute mal du suchst ScreenToClient und ClientToScreen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/533098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/533098</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Fri, 04 Jun 2004 11:32:19 GMT</pubDate></item></channel></rss>