<?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 transparent setzen]]></title><description><![CDATA[<pre><code class="language-cpp">void Cfader::OnBnClickedButton2()
{
	HWND parentyy = ::FindWindow(NULL, &quot;Rechner&quot;);
	SetWindowTransparency(parentyy,40);
}

BOOL SetWindowTransparency(HWND hWnd, int nPercentage)
{
    int nTrans = ((nPercentage*255) / 100);
	BOOL bSet = ::SetLayeredWindowAttributes(hWnd, NULL, nTrans, LWA_ALPHA);
    if(bSet == 0) return FALSE;

	BOOL bSetPos = SetWindowPos(hWnd, hWnd, NULL, NULL, NULL, NULL, SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOSIZE | SWP_NOZORDER);
    if(bSetPos == 0) return FALSE;
    return TRUE;
}
</code></pre>
<p>Ich will ein Fenster transparent darstellen, aber erhalte immer vom Compiler<br />
ein &quot;nicht aufgelöstes externes Symbol&quot;.</p>
<p>User32.lib ist gelinkt und windows.h included. Ich weiss wirklich nicht was<br />
da jetzt noch fehlen kann <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/156836/fenster-transparent-setzen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Jul 2026 07:34:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/156836.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Aug 2006 17:27:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fenster transparent setzen on Sun, 20 Aug 2006 17:27:38 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void Cfader::OnBnClickedButton2()
{
	HWND parentyy = ::FindWindow(NULL, &quot;Rechner&quot;);
	SetWindowTransparency(parentyy,40);
}

BOOL SetWindowTransparency(HWND hWnd, int nPercentage)
{
    int nTrans = ((nPercentage*255) / 100);
	BOOL bSet = ::SetLayeredWindowAttributes(hWnd, NULL, nTrans, LWA_ALPHA);
    if(bSet == 0) return FALSE;

	BOOL bSetPos = SetWindowPos(hWnd, hWnd, NULL, NULL, NULL, NULL, SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOSIZE | SWP_NOZORDER);
    if(bSetPos == 0) return FALSE;
    return TRUE;
}
</code></pre>
<p>Ich will ein Fenster transparent darstellen, aber erhalte immer vom Compiler<br />
ein &quot;nicht aufgelöstes externes Symbol&quot;.</p>
<p>User32.lib ist gelinkt und windows.h included. Ich weiss wirklich nicht was<br />
da jetzt noch fehlen kann <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1121032</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1121032</guid><dc:creator><![CDATA[Erwin]]></dc:creator><pubDate>Sun, 20 Aug 2006 17:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster transparent setzen on Sun, 20 Aug 2006 17:41:40 GMT]]></title><description><![CDATA[<p>Und welches Symbol fehlt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1121041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1121041</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 20 Aug 2006 17:41:40 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster transparent setzen on Sun, 20 Aug 2006 18:16:26 GMT]]></title><description><![CDATA[<p>Ähh ja <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<blockquote>
<p>Nicht aufgelöstes externes Symbol '&quot;public: int __thiscall Cfader::SetWindowTransparencyx(struct HWND__ *,unsigned long,unsigned char,char *)&quot; (?SetWindowTransparencyx@CfaderDlg@@QAEHPAUHWND__@@KEPAD@Z)', verwiesen in Funktion '&quot;public: void __thiscall Cfader::OnBnClickedButton2(void)&quot; (?OnBnClickedButton2@CfaderDlg@@QAEXXZ)'</p>
</blockquote>
<p>Und das sagt, zumindest mir, nichts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1121050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1121050</guid><dc:creator><![CDATA[Erwin]]></dc:creator><pubDate>Sun, 20 Aug 2006 18:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster transparent setzen on Mon, 21 Aug 2006 07:47:45 GMT]]></title><description><![CDATA[<p>Soll das SetWindowTransparency evtl ne Methode deiner Klasse sein? Falls, ja, dann fehlt das Cfader:: vor der Definition.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1121243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1121243</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Mon, 21 Aug 2006 07:47:45 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster transparent setzen on Mon, 21 Aug 2006 10:46:40 GMT]]></title><description><![CDATA[<p>Wenn SetWindowTransparency zu Deiner Klasse gehört, müsste es so heißen:</p>
<pre><code class="language-cpp">BOOL Cfader::SetWindowTransparency(HWND hWnd, int nPercentage)
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1121378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1121378</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 21 Aug 2006 10:46:40 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster transparent setzen on Mon, 21 Aug 2006 11:56:30 GMT]]></title><description><![CDATA[<p>bzw. wenn du die Funktion ohne klasse nutzen willst muss sie über der Funktione stehn in der sie das erste mal aufgerufen wird.</p>
<pre><code>BOOL SetWindowTransparency(HWND hWnd, int nPercentage)
{
    int nTrans = ((nPercentage*255) / 100);
    BOOL bSet = ::SetLayeredWindowAttributes(hWnd, NULL, nTrans, LWA_ALPHA);
    if(bSet == 0) return FALSE;

    BOOL bSetPos = SetWindowPos(hWnd, hWnd, NULL, NULL, NULL, NULL, SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOSIZE | SWP_NOZORDER);
    if(bSetPos == 0) return FALSE;
    return TRUE;
}
void Cfader::OnBnClickedButton2()
{
    HWND parentyy = ::FindWindow(NULL, &quot;Rechner&quot;);
    SetWindowTransparency(parentyy,40);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1121452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1121452</guid><dc:creator><![CDATA[LowFly]]></dc:creator><pubDate>Mon, 21 Aug 2006 11:56:30 GMT</pubDate></item></channel></rss>