<?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[Änderung der größe eines Image-Objektes !!!]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich will eine Image-Objekt in der größe andern. Jedoch klappt das nicht so wie ich will. Wenn ich den folgenden Code ausführe streckt sich das Image nicht um die hälfte über mein Dialog sondern zu ca. 3/4. Was mach ich falsch ?</p>
<pre><code class="language-cpp">void Cbase_applicationDlg::OnSizing( UINT iSide, LPRECT lp )
{
	UINT iWidth_Menu	= 300;
	UINT iWidth_Status	= 50;
	RECT rect;	

	GetWindowRect( &amp;rect );

	CWnd *pWnd_left_top			= GetDlgItem(IDC_VIEW_LEFT_TOP);
	CWnd *pWnd_left_bottom		= GetDlgItem(IDC_VIEW_LEFT_BOTTOM);
	CWnd *pWnd_right_top		= GetDlgItem(IDC_VIEW_RIGHT_TOP);
	CWnd *pWnd_right_bottom		= GetDlgItem(IDC_VIEW_RIGHT_BOTTOM);

	pWnd_left_top-&gt;SetWindowPos(	NULL, 
									0, 
									0, 
									(INT)(rect.right/2), 
									(INT)(rect.bottom/2), 
									0 );

}
</code></pre>
<p>Kann mir da jemand helfen ? <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>
<p>Cu</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/53978/änderung-der-größe-eines-image-objektes</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 13:44:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/53978.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Nov 2003 14:14:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Änderung der größe eines Image-Objektes !!! on Mon, 03 Nov 2003 14:14:59 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich will eine Image-Objekt in der größe andern. Jedoch klappt das nicht so wie ich will. Wenn ich den folgenden Code ausführe streckt sich das Image nicht um die hälfte über mein Dialog sondern zu ca. 3/4. Was mach ich falsch ?</p>
<pre><code class="language-cpp">void Cbase_applicationDlg::OnSizing( UINT iSide, LPRECT lp )
{
	UINT iWidth_Menu	= 300;
	UINT iWidth_Status	= 50;
	RECT rect;	

	GetWindowRect( &amp;rect );

	CWnd *pWnd_left_top			= GetDlgItem(IDC_VIEW_LEFT_TOP);
	CWnd *pWnd_left_bottom		= GetDlgItem(IDC_VIEW_LEFT_BOTTOM);
	CWnd *pWnd_right_top		= GetDlgItem(IDC_VIEW_RIGHT_TOP);
	CWnd *pWnd_right_bottom		= GetDlgItem(IDC_VIEW_RIGHT_BOTTOM);

	pWnd_left_top-&gt;SetWindowPos(	NULL, 
									0, 
									0, 
									(INT)(rect.right/2), 
									(INT)(rect.bottom/2), 
									0 );

}
</code></pre>
<p>Kann mir da jemand helfen ? <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>
<p>Cu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/385702</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/385702</guid><dc:creator><![CDATA[Gast_API]]></dc:creator><pubDate>Mon, 03 Nov 2003 14:14:59 GMT</pubDate></item><item><title><![CDATA[Reply to Änderung der größe eines Image-Objektes !!! on Mon, 03 Nov 2003 14:43:53 GMT]]></title><description><![CDATA[<p>GetClientRect?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/385725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/385725</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 03 Nov 2003 14:43:53 GMT</pubDate></item><item><title><![CDATA[Reply to Änderung der größe eines Image-Objektes !!! on Mon, 03 Nov 2003 15:30:18 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Danke, klappt wunderbar <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /><br />
Aber was ist/war jetzt der Unterschied zwischen Window/client Rect ?</p>
<p>Kann es sein, dass es sich bei WindowRect um die wirkliche Fenstergröße Handelt und bei Client Rect die Titelleiste ausgeschlossen ist ?</p>
<p>Bye</p>
]]></description><link>https://www.c-plusplus.net/forum/post/385763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/385763</guid><dc:creator><![CDATA[Gast_API]]></dc:creator><pubDate>Mon, 03 Nov 2003 15:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to Änderung der größe eines Image-Objektes !!! on Mon, 03 Nov 2003 15:33:21 GMT]]></title><description><![CDATA[<p>Gast_API schrieb:</p>
<blockquote>
<p>Hi,<br />
Kann es sein, dass es sich bei WindowRect um die wirkliche Fenstergröße Handelt und bei Client Rect die Titelleiste ausgeschlossen ist ?</p>
</blockquote>
<p>Nicht nur das. GetWindowRect liefert Koordinaten, die relativ zur linken oberen Ecke des Bildschirms sind.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/385767</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/385767</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 03 Nov 2003 15:33:21 GMT</pubDate></item><item><title><![CDATA[Reply to Änderung der größe eines Image-Objektes !!! on Mon, 03 Nov 2003 16:33:35 GMT]]></title><description><![CDATA[<p>Ok dAnke!!<br />
Cu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/385843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/385843</guid><dc:creator><![CDATA[Gast_API]]></dc:creator><pubDate>Mon, 03 Nov 2003 16:33:35 GMT</pubDate></item></channel></rss>