<?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[CDialog Transparent]]></title><description><![CDATA[<p>Hallo, ich versuche meinen Dialog ein wenig Transparent zu machen mit</p>
<pre><code class="language-cpp">SetLayeredWindowAttributes(NULL,100,2);
</code></pre>
<p>allerdings sagt er mir immer folgende Fehlermeldung:</p>
<p>error C3861: 'SetLayeredWindowAttributes': identifier not found, even with argument-dependent lookup</p>
<p>ich habe im linker gesagt User32.lib aber es funktioniert nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180125/cdialog-transparent</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 10:03:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180125.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Apr 2007 10:40:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CDialog Transparent on Sun, 29 Apr 2007 10:40:11 GMT]]></title><description><![CDATA[<p>Hallo, ich versuche meinen Dialog ein wenig Transparent zu machen mit</p>
<pre><code class="language-cpp">SetLayeredWindowAttributes(NULL,100,2);
</code></pre>
<p>allerdings sagt er mir immer folgende Fehlermeldung:</p>
<p>error C3861: 'SetLayeredWindowAttributes': identifier not found, even with argument-dependent lookup</p>
<p>ich habe im linker gesagt User32.lib aber es funktioniert nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1275556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1275556</guid><dc:creator><![CDATA[xyz44]]></dc:creator><pubDate>Sun, 29 Apr 2007 10:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to CDialog Transparent on Sun, 29 Apr 2007 11:03:45 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">BOOL MakeWindowTransparent(HWND hWnd, int value=255)
{
	if(value &gt; 255) value = 255;
	if(value &lt; 0) value = 0;

	typedef DWORD (WINAPI *PSLWA)(HWND, DWORD, BYTE, DWORD);
	static PSLWA pSetLayeredWindowAttributes = NULL;

	HMODULE hDLL = LoadLibrary (&quot;user32&quot;);
    pSetLayeredWindowAttributes = (PSLWA) GetProcAddress(hDLL, &quot;SetLayeredWindowAttributes&quot;);
	if(pSetLayeredWindowAttributes == NULL) return FALSE;
	SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) | 0x00080000);
    if(GetLastError()) return FALSE;
    int result = pSetLayeredWindowAttributes (hWnd, 0, (int)(value), 0x00000002);

	return result;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1275561</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1275561</guid><dc:creator><![CDATA[90aef0]]></dc:creator><pubDate>Sun, 29 Apr 2007 11:03:45 GMT</pubDate></item></channel></rss>