<?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[Fenstergröße beim SDI ändern]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich versuche gerade die Fenstergröße einer SDi-Anwendung zu ändern und zwar wie folgt:</p>
<pre><code class="language-cpp">int CChildView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	int Width = 360 + 2*GetSystemMetrics(SM_CYSIZEFRAME);
	int Height = 520 + 2* GetSystemMetrics(SM_CYSIZEFRAME) + GetSystemMetrics(SM_CYMENU) + GetSystemMetrics(SM_CYCAPTION);
	this-&gt;SetWindowPos(&amp;CWnd::wndBottom, 0,0, Width, Height, SWP_NOMOVE);
	return 0;
}
</code></pre>
<p>Leider bekomme ich laut Debugger immer 1 als Rückgabewert für die Funktion SetWindowsPos und deswegen bleibt die Größe und wird nicht geändert. Sehr ihr, wo mein Fehler liegt?</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177412/fenstergröße-beim-sdi-ändern</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 01:36:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177412.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Mar 2007 08:25:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fenstergröße beim SDI ändern on Sat, 31 Mar 2007 08:25:29 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich versuche gerade die Fenstergröße einer SDi-Anwendung zu ändern und zwar wie folgt:</p>
<pre><code class="language-cpp">int CChildView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	int Width = 360 + 2*GetSystemMetrics(SM_CYSIZEFRAME);
	int Height = 520 + 2* GetSystemMetrics(SM_CYSIZEFRAME) + GetSystemMetrics(SM_CYMENU) + GetSystemMetrics(SM_CYCAPTION);
	this-&gt;SetWindowPos(&amp;CWnd::wndBottom, 0,0, Width, Height, SWP_NOMOVE);
	return 0;
}
</code></pre>
<p>Leider bekomme ich laut Debugger immer 1 als Rückgabewert für die Funktion SetWindowsPos und deswegen bleibt die Größe und wird nicht geändert. Sehr ihr, wo mein Fehler liegt?</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1256423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1256423</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 31 Mar 2007 08:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to Fenstergröße beim SDI ändern on Sat, 31 Mar 2007 09:10:21 GMT]]></title><description><![CDATA[<p>Das Fenster auf das Du da zugreifst existiert an dieser Stelle noch gar nicht. Versuch mal direkt die Eigenschaften von CREATESTRUCT zu verändern (über lpCreateStruct-&gt;..).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1256441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1256441</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Sat, 31 Mar 2007 09:10:21 GMT</pubDate></item><item><title><![CDATA[Reply to Fenstergröße beim SDI ändern on Sat, 31 Mar 2007 09:27:37 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Dann passiert leider auch nichts. Ich habe den Code übrigens von hier:</p>
<p><a href="http://www.cpp-tutor.de/mfc/mfc/kap3/tut/tut6.htm" rel="nofollow">http://www.cpp-tutor.de/mfc/mfc/kap3/tut/tut6.htm</a></p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1256452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1256452</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 31 Mar 2007 09:27:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fenstergröße beim SDI ändern on Sat, 31 Mar 2007 10:45:10 GMT]]></title><description><![CDATA[<p>Dort wird aber SetWindowPos auch auf den ParentFrame angewandt. Sorry, hab leider nicht gesehen, daß du dich im child befindest <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1256512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1256512</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Sat, 31 Mar 2007 10:45:10 GMT</pubDate></item><item><title><![CDATA[Reply to Fenstergröße beim SDI ändern on Sat, 31 Mar 2007 10:50:53 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ja das habe ich übersehen. Danke für den Tipp. Jetzt klappt es.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1256517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1256517</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 31 Mar 2007 10:50:53 GMT</pubDate></item></channel></rss>