<?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[&amp;quot;wirkliche&amp;quot; Fenstergröße einstellen]]></title><description><![CDATA[<p>Wenn ich bei meinem Fenster die Größe am Anfanng definiere, dann zählt er dazu immer noch die Leisten. Zuerst dachte ich: kein Problem ich rechne sie einfach drauf, aber jetzt fählt mir auf, dass die von XP größer ist! Was kann ich machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/88377/quot-wirkliche-quot-fenstergröße-einstellen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 11:19:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88377.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Oct 2004 07:05:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &amp;quot;wirkliche&amp;quot; Fenstergröße einstellen on Sat, 09 Oct 2004 07:05:14 GMT]]></title><description><![CDATA[<p>Wenn ich bei meinem Fenster die Größe am Anfanng definiere, dann zählt er dazu immer noch die Leisten. Zuerst dachte ich: kein Problem ich rechne sie einfach drauf, aber jetzt fählt mir auf, dass die von XP größer ist! Was kann ich machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/624691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/624691</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Sat, 09 Oct 2004 07:05:14 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;wirkliche&amp;quot; Fenstergröße einstellen on Sat, 09 Oct 2004 09:38:41 GMT]]></title><description><![CDATA[<p>Wenn du die Leiste nicht brauchst, könntest du sie deaktivieren..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/624750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/624750</guid><dc:creator><![CDATA[DocJunioR]]></dc:creator><pubDate>Sat, 09 Oct 2004 09:38:41 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;wirkliche&amp;quot; Fenstergröße einstellen on Sat, 09 Oct 2004 12:11:30 GMT]]></title><description><![CDATA[<p>die brauch ich aber</p>
]]></description><link>https://www.c-plusplus.net/forum/post/624842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/624842</guid><dc:creator><![CDATA[joomoo_]]></dc:creator><pubDate>Sat, 09 Oct 2004 12:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;wirkliche&amp;quot; Fenstergröße einstellen on Sat, 09 Oct 2004 13:08:47 GMT]]></title><description><![CDATA[<p>Platform SDK schrieb:</p>
<blockquote>
<p>The <strong>AdjustWindowRectEx</strong> function calculates the required size of the window rectangle, based on the desired size of the client rectangle. The window rectangle can then be passed to the CreateWindowEx function to create a window whose client area is the desired size.</p>
</blockquote>
<p>Ich machs allerdings so:</p>
<pre><code class="language-cpp">int AdjustWindowSize(HWND hWnd, int cx, int cy)
{
	RECT iRt, oRt;
	int xd, yd;
	int mx, my;

	GetWindowRect(hWnd,&amp;oRt);
	GetClientRect(hWnd,&amp;iRt);

	oRt.right=oRt.right-oRt.left;
	oRt.bottom=oRt.bottom-oRt.top;

	xd=oRt.right-iRt.right; // Differenz von Fenster-Breite und Client-Breite
	yd=oRt.bottom-iRt.bottom; // Differenz von Fenster-Höhe und Client-Höhe

        // Das hier habe ich nur um das Fenster zu zentrieren
        // cx+xd ergibt die gesuchte Fensterbreite
        // cy+yd die gewünschte Fensterhöhe
	mx=(GetSystemMetrics(SM_CXSCREEN)/2)-((cx+xd)/2);
	my=(GetSystemMetrics(SM_CYSCREEN)/2)-((cy+yd)/2);

	MoveWindow(hWnd,mx,my,(cx+xd),(yd+cy),true);

	return 1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/624872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/624872</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Sat, 09 Oct 2004 13:08:47 GMT</pubDate></item></channel></rss>