<?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[Fenster mit MFC Alpha Style ?]]></title><description><![CDATA[<p>Hallo. Ich habe ein Programm geschrieben. Nun möchte ich das das Dialogfenster zu 90% Transparent ist. Ich finde nirgends einen brauchbaren Code. Hat einer schon mal sowas gemacht ? Oder geht das in MFC gar nicht ?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177257/fenster-mit-mfc-alpha-style</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 21:56:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177257.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Mar 2007 15:11:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Thu, 29 Mar 2007 15:11:39 GMT]]></title><description><![CDATA[<p>Hallo. Ich habe ein Programm geschrieben. Nun möchte ich das das Dialogfenster zu 90% Transparent ist. Ich finde nirgends einen brauchbaren Code. Hat einer schon mal sowas gemacht ? Oder geht das in MFC gar nicht ?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255455</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255455</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 29 Mar 2007 15:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Thu, 29 Mar 2007 20:40:37 GMT]]></title><description><![CDATA[<p>google: layered windows<br />
WS_EX_LAYERED</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255623</guid><dc:creator><![CDATA[hey]]></dc:creator><pubDate>Thu, 29 Mar 2007 20:40:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Fri, 30 Mar 2007 08:31:52 GMT]]></title><description><![CDATA[<p>Danke werde ich mal nach googlen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255815</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255815</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Fri, 30 Mar 2007 08:31:52 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Mon, 02 Apr 2007 14:21:01 GMT]]></title><description><![CDATA[<p>leider finde ich nichts brauchbares für ne mfc.</p>
<p>hat einer nen codeschnipsel für mich ?<br />
wäre super.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258021</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 02 Apr 2007 14:21:01 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Mon, 02 Apr 2007 14:39:55 GMT]]></title><description><![CDATA[<p>Wie, Du findest nichts???<br />
<a href="http://www.google.de/search?q=mfc+alpha+blend+site%3Acodeproject.com" rel="nofollow">http://www.google.de/search?q=mfc+alpha+blend+site%3Acodeproject.com</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258038</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258038</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 02 Apr 2007 14:39:55 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Mon, 02 Apr 2007 15:44:04 GMT]]></title><description><![CDATA[<p>habs schon.</p>
<p>hier der code.</p>
<p>kommt in den oninitdialog</p>
<pre><code>HWND hWnd=this-&gt;m_hWnd;
	typedef DWORD (WINAPI *PSLWA)(HWND, DWORD, BYTE, DWORD);
	PSLWA pSetLayeredWindowAttributes;
	HMODULE hDLL = LoadLibrary (&quot;user32&quot;);
	pSetLayeredWindowAttributes = (PSLWA) GetProcAddress(hDLL,&quot;SetLayeredWindowAttributes&quot;);
	if (pSetLayeredWindowAttributes != NULL) {
		SetWindowLong (hWnd, GWL_EXSTYLE, GetWindowLong
		(hWnd, GWL_EXSTYLE) |WS_EX_LAYERED);
	}
	static int factor=220; // 0 - 255
	if (pSetLayeredWindowAttributes != NULL) {
		pSetLayeredWindowAttributes (hWnd, RGB(255,0,0), factor, LWA_COLORKEY|LWA_ALPHA);
	}
</code></pre>
<p>sollte in der FAQ stehen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258074</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 02 Apr 2007 15:44:04 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Mon, 02 Apr 2007 16:53:07 GMT]]></title><description><![CDATA[<p>ehm...das geht (from scratch) auch mit 2 zeilen...</p>
<pre><code class="language-cpp">SetWindowLong(hWnd, GWL_EXSTYLE, (GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_LAYERED));
SetLayeredWindowAttributes(hWnd, 0, 255*0.9, LWA_ALPHA);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1258124</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258124</guid><dc:creator><![CDATA[hey]]></dc:creator><pubDate>Mon, 02 Apr 2007 16:53:07 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Mon, 02 Apr 2007 16:56:43 GMT]]></title><description><![CDATA[<p>bei mir gings ned. das soll in die oninit ? was noch ? was ist mit hwnd ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258126</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 02 Apr 2007 16:56:43 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster mit MFC Alpha Style ? on Mon, 02 Apr 2007 17:53:39 GMT]]></title><description><![CDATA[<p>also hier die lösung.<br />
dann muss es korrekterweise so aussehen.<br />
denn NUR die 2 zeilen nutzen nichts:</p>
<pre><code>#define WS_EX_LAYERED 0x80000
#define LWA_ALPHA 2
</code></pre>
<pre><code>HWND hWnd=this-&gt;m_hWnd;
	typedef DWORD (WINAPI *PSLWA)(HWND, DWORD, BYTE, DWORD);
	PSLWA pSetLayeredWindowAttributes;
	HMODULE hDLL = LoadLibrary (&quot;user32&quot;);
	pSetLayeredWindowAttributes = (PSLWA) GetProcAddress(hDLL,&quot;SetLayeredWindowAttributes&quot;);
	if (pSetLayeredWindowAttributes != NULL) {
		SetWindowLong (hWnd, GWL_EXSTYLE, (GetWindowLong (hWnd, GWL_EXSTYLE) |WS_EX_LAYERED)); 
		pSetLayeredWindowAttributes (hWnd, 0, 255*0.9, LWA_ALPHA);
	}
</code></pre>
<p>Wenn noch einer weiss wie man es kürzen kann, lasst euch nur aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258131</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 02 Apr 2007 17:53:39 GMT</pubDate></item></channel></rss>