<?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[Windows Desktop Bereich in RECT speichern]]></title><description><![CDATA[<p>Hi, wie kann ich herausfinden, welche Auflösung eingestellt ist ?<br />
Also praktisch RECT nicht vom eigenen Fenster sondern vom Desktop...^^<br />
Ich hoffe ihr könnt helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/173614/windows-desktop-bereich-in-rect-speichern</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 22:44:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/173614.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Feb 2007 21:16:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windows Desktop Bereich in RECT speichern on Sat, 17 Feb 2007 21:16:26 GMT]]></title><description><![CDATA[<p>Hi, wie kann ich herausfinden, welche Auflösung eingestellt ist ?<br />
Also praktisch RECT nicht vom eigenen Fenster sondern vom Desktop...^^<br />
Ich hoffe ihr könnt helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230329</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230329</guid><dc:creator><![CDATA[Foxx90]]></dc:creator><pubDate>Sat, 17 Feb 2007 21:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Desktop Bereich in RECT speichern on Sat, 17 Feb 2007 21:22:57 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>GetSystemMetrics</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <a href="http://msdn2.microsoft.com/en-us/library/ms724385.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms724385.aspx</a></p>
<p>MfG mikey.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230330</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Sat, 17 Feb 2007 21:22:57 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Desktop Bereich in RECT speichern on Sat, 17 Feb 2007 21:22:44 GMT]]></title><description><![CDATA[<p>Work-Area: SystemParametersInfo mit SPI_GETWORKAREA</p>
<p>Bzgl. Desktop: Welcher Bildschirm!?<br />
Siehe: GetMonitorInfo</p>
<p>Siehe: GetDesktopWindow und GetWindowRect</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230331</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230331</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 17 Feb 2007 21:22:44 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Desktop Bereich in RECT speichern on Sat, 17 Feb 2007 21:38:18 GMT]]></title><description><![CDATA[<p>ähmm, ok ich will mein Fenster recht oben starten lassen.... ich dachte mir hjalt das ginge am besten, indem man sich das RECT vom Desktop holt und dann<br />
rect.right - x sagt ... oder habt ihr eine bessere idde ?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230338</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230338</guid><dc:creator><![CDATA[Foxx90]]></dc:creator><pubDate>Sat, 17 Feb 2007 21:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Desktop Bereich in RECT speichern on Sat, 17 Feb 2007 22:00:05 GMT]]></title><description><![CDATA[<p>Foxx90 schrieb:</p>
<blockquote>
<p>(...) ich will mein Fenster recht oben starten lassen (...)</p>
</blockquote>
<p>Hoffentlich habe ich das richtig verstanden :</p>
<pre><code class="language-cpp">RECT rc;

 GetWindowRect (hWnd,&amp;rc);

 signed int f1 = rc.right  - rc.left;           // &quot;fensterbreite&quot;, ev. casten
 signed int f3 = GetSystemMetrics(SM_CXSCREEN); // &quot;bildschirmbreite&quot; 

 USER32_SetWindowPos (hWnd,0,f3-f1,0,0,0,SWP_NOZORDER | SWP_NOSIZE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1230353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230353</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 17 Feb 2007 22:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Desktop Bereich in RECT speichern on Sat, 17 Feb 2007 23:06:21 GMT]]></title><description><![CDATA[<p>merker schrieb:</p>
<blockquote>
<p>Foxx90 schrieb:</p>
<blockquote>
<p>(...) ich will mein Fenster recht oben starten lassen (...)</p>
</blockquote>
<p>Hoffentlich habe ich das richtig verstanden :</p>
<pre><code class="language-cpp">RECT rc;

 GetWindowRect (hWnd,&amp;rc);

 signed int f1 = rc.right  - rc.left;           // &quot;fensterbreite&quot;, ev. casten
 signed int f3 = GetSystemMetrics(SM_CXSCREEN); // &quot;bildschirmbreite&quot; 

 USER32_SetWindowPos (hWnd,0,f3-f1,0,0,0,SWP_NOZORDER | SWP_NOSIZE);
</code></pre>
</blockquote>
<p>Was soll denn bitte 'USER32_SetWindowPos' sein ?</p>
<p>Und das <em>signed</em> ist auch überflüssig, da diese Standardtypen auto-signed sind (ANSI-C-Standard).<br />
Weiterhin solltest Du auf jeden Fall noch Jochen's Hinweis beachten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230368</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 17 Feb 2007 23:06:21 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Desktop Bereich in RECT speichern on Sun, 18 Feb 2007 02:48:35 GMT]]></title><description><![CDATA[<p>CodeFinder schrieb:</p>
<blockquote>
<p>Was soll denn bitte 'USER32_SetWindowPos' sein ?</p>
</blockquote>
<p>Uff ! Nun weiss jeder, dass ich die &quot;windows.h&quot; nicht benutze.</p>
<p>Muss natürlich &quot;SetWindowPos&quot; heissen.</p>
<p>CodeFinder schrieb:</p>
<blockquote>
<p>Weiterhin solltest Du auf jeden Fall noch Jochen's Hinweis beachten.</p>
</blockquote>
<p>Die Hinweise von Foxx90 sind viel beachtenswerter :</p>
<p>Foxx90 schrieb:</p>
<blockquote>
<p>(...) ich will mein Fenster recht oben starten lassen (...)</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1230405</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230405</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 18 Feb 2007 02:48:35 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Desktop Bereich in RECT speichern on Sun, 18 Feb 2007 10:38:25 GMT]]></title><description><![CDATA[<p>merker schrieb:</p>
<blockquote>
<p>CodeFinder schrieb:</p>
<blockquote>
<p>Weiterhin solltest Du auf jeden Fall noch Jochen's Hinweis beachten.</p>
</blockquote>
<p>Die Hinweise von Foxx90 sind viel beachtenswerter :</p>
<p>Foxx90 schrieb:</p>
<blockquote>
<p>(...) ich will mein Fenster recht oben starten lassen (...)</p>
</blockquote>
</blockquote>
<p>Die Frage ist nur: Wo ist rechts oben?<br />
Primary-Monitor oder wirklich ganz rechts!?</p>
<p>Siehe: The Virtual Screen<br />
<a href="http://msdn2.microsoft.com/en-us/library/ms534613.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms534613.aspx</a></p>
<p>Viele haben nämlich heute meistens mehr als ein Bildschirm...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230462</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 18 Feb 2007 10:38:25 GMT</pubDate></item></channel></rss>