<?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[CWnd::GetPixel() warum ein Negativer Wert?]]></title><description><![CDATA[<p>Hi, warum erhalte ich einen negativen Wert?</p>
<pre><code>CClientDC dc( CWnd::GetDesktopWindow() );

	DWORD dwColor = (DWORD)dc.GetPixel( 10, 10 );

	char buffer[100];
	sprintf_s( buffer, 100, &quot;%d&quot;, dwColor );
	OutputDebugString( buffer );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/188189/cwnd-getpixel-warum-ein-negativer-wert</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 07:11:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188189.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Jul 2007 21:57:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CWnd::GetPixel() warum ein Negativer Wert? on Sat, 28 Jul 2007 21:57:37 GMT]]></title><description><![CDATA[<p>Hi, warum erhalte ich einen negativen Wert?</p>
<pre><code>CClientDC dc( CWnd::GetDesktopWindow() );

	DWORD dwColor = (DWORD)dc.GetPixel( 10, 10 );

	char buffer[100];
	sprintf_s( buffer, 100, &quot;%d&quot;, dwColor );
	OutputDebugString( buffer );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1334091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334091</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Sat, 28 Jul 2007 21:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to CWnd::GetPixel() warum ein Negativer Wert? on Sun, 29 Jul 2007 14:50:12 GMT]]></title><description><![CDATA[<p>COLORREF ist ein 32 Bit-Wert, der alle 3+1 Farbkomponenten enthält(+1 ist Alphakanal).<br />
Wenn du an die einzelnen Farbwerte willst, dann nutze diese Makros:</p>
<p><strong>GetBValue, GetGValue, GetRValue</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334401</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334401</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Sun, 29 Jul 2007 14:50:12 GMT</pubDate></item></channel></rss>