<?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[Gifs in Anwendung ?]]></title><description><![CDATA[<p>Leider funzt die Suchfunktion ja im Moment nicht.</p>
<p>Also meine Frage: Kann man bewegte Gifs in ein Dialogfeld einbauen ? bmp geht ja, aber bei gif hab ich keine ahnung wie.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/78563/gifs-in-anwendung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:00:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/78563.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Jul 2004 15:57:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gifs in Anwendung ? on Fri, 02 Jul 2004 15:57:44 GMT]]></title><description><![CDATA[<p>Leider funzt die Suchfunktion ja im Moment nicht.</p>
<p>Also meine Frage: Kann man bewegte Gifs in ein Dialogfeld einbauen ? bmp geht ja, aber bei gif hab ich keine ahnung wie.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/551865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/551865</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 02 Jul 2004 15:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to Gifs in Anwendung ? on Fri, 02 Jul 2004 16:02:08 GMT]]></title><description><![CDATA[<p>Man kann Gifs (mit OleLoadImagePath oder so ähnlich) öffnen und selber auf einem Window anzeigen. Einfach mal auf <a href="http://codeproject.com" rel="nofollow">codeproject.com</a> suchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/551871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/551871</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Fri, 02 Jul 2004 16:02:08 GMT</pubDate></item><item><title><![CDATA[Reply to Gifs in Anwendung ? on Sat, 03 Jul 2004 09:23:05 GMT]]></title><description><![CDATA[<p>oha. in englisch. da such ich mir ja nen ast. wär nett wenn mir hier einer ein beispiel reinposten könnte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/552188</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/552188</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 03 Jul 2004 09:23:05 GMT</pubDate></item><item><title><![CDATA[Reply to Gifs in Anwendung ? on Sat, 03 Jul 2004 12:41:39 GMT]]></title><description><![CDATA[<p>Hier haste einen Ausschnitt aus einer Klasse die ich mal geschrieben hab. Sie heist zwar CJpgBitmap funktioniert mit gifs aber genauso.</p>
<pre><code class="language-cpp">BOOL CJpgBitmap::LoadJpg(CString Path)
{
	UnloadPic();
	USES_CONVERSION;	
	return OleLoadPicturePath(T2OLE(Path), NULL, 0, RGB(0,0,0), IID_IPicture, (LPVOID*)&amp;pPicture) == 0;

}

CSize CJpgBitmap::GetSize()
{
	CDC* pDC = CWnd::GetDesktopWindow()-&gt;GetDC();
	long hmWidth;
	long hmHeight;
	pPicture-&gt;get_Width(&amp;hmWidth);
	pPicture-&gt;get_Height(&amp;hmHeight);
	CSize size;
	size.cx = MulDiv(hmWidth, pDC-&gt;GetDeviceCaps(LOGPIXELSX), 2540);
	size.cy = MulDiv(hmHeight, pDC-&gt;GetDeviceCaps(LOGPIXELSY), 2540);
	CWnd::GetDesktopWindow()-&gt;ReleaseDC(pDC);
	return size;
}

HBITMAP CJpgBitmap::GetBitmap(int cx, int cy)
{
	if (!pPicture)
		return NULL;

	CBitmap bmMem;
	CDC dcMem;
	CDC* pDC = CWnd::GetDesktopWindow()-&gt;GetDC();

	if (dcMem.CreateCompatibleDC(pDC))
	{
		long hmWidth;
		long hmHeight;

		pPicture-&gt;get_Width(&amp;hmWidth);
		pPicture-&gt;get_Height(&amp;hmHeight);

		int nWidth	= cx;
		int nHeight	= cy;

		if (bmMem.CreateCompatibleBitmap(pDC, nWidth, nHeight))
		{
			CBitmap* pOldBM = dcMem.SelectObject(&amp;bmMem);

			dcMem.FillSolidRect(0, 0, nWidth, nHeight, RGB(0,0,0));

			HRESULT hr = pPicture-&gt;Render(dcMem, 0, 0, nWidth, nHeight, 0, hmHeight, hmWidth, -hmHeight, NULL);
			dcMem.SelectObject(pOldBM);
		}
	}

	CWnd::GetDesktopWindow()-&gt;ReleaseDC(pDC);

	return (HBITMAP)bmMem.Detach();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/552319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/552319</guid><dc:creator><![CDATA[newvet]]></dc:creator><pubDate>Sat, 03 Jul 2004 12:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to Gifs in Anwendung ? on Sat, 03 Jul 2004 13:17:32 GMT]]></title><description><![CDATA[<p>danke, werd sie mir heut abend mal zur brust nehmen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/552351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/552351</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 03 Jul 2004 13:17:32 GMT</pubDate></item></channel></rss>