<?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[WS_EX_LAYERED - Es scheint nicht definiert zu sein...]]></title><description><![CDATA[<p>hi,</p>
<p>ich habe Platform SDK February 2003 und habe dort von WS_EX_LAYERED gelesen, welches man bei CreateWindowEx setzen kann. Ich laß auch im internet, dass ich bevor ich windows.h einbinde, _WIN32_WINNT auf 0x0500 definieren muss. Allerdings gibt es die konstante WS_EX_LAYERED nicht, egal was ich mache.</p>
<p>hier das script (ganz simpel):</p>
<pre><code class="language-cpp">#define _WIN32_WINNT 0x0500 
#include &lt;windows.h&gt;

LRESULT CALLBACK WndProc	(HWND, UINT, WPARAM, LPARAM);

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
	static TCHAR szAppName[] = &quot;Bla&quot;;
	HWND		hWnd;
	MSG			msg;
	WNDCLASS	wndclass;

	wndclass.style			= CS_HREDRAW | CS_VREDRAW;
	wndclass.lpfnWndProc	= WndProc;
	wndclass.cbClsExtra		= 0;
	wndclass.cbWndExtra		= 0;
	wndclass.hInstance		= hInstance;
	wndclass.hIcon			= LoadIcon(NULL, IDI_APPLICATION);
	wndclass.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wndclass.hbrBackground	= (HBRUSH) GetStockObject(WHITE_BRUSH);
	wndclass.lpszMenuName	= NULL;
	wndclass.lpszClassName	= szAppName;

	RegisterClass(&amp;wndclass);

	hWnd = CreateWindowEx(	WS_EX_LAYERED,
							szAppName,
							&quot;Bla&quot;,
							WS_OVERLAPPEDWINDOW | WS_EX_LAYERED,
							CW_USEDEFAULT,
							CW_USEDEFAULT,
							CW_USEDEFAULT,
							CW_USEDEFAULT,
							NULL,
							NULL,
							hInstance,
							NULL);

	ShowWindow(hWnd, iCmdShow);
	UpdateWindow(hWnd);

	while (GetMessage(&amp;msg, NULL, 0, 0))
	{
		TranslateMessage(&amp;msg);
		DispatchMessage(&amp;msg);
	}
	return msg.wParam;
}

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{

	switch (message)
	{
	case WM_CREATE:

		return 0;

	case WM_DESTROY:
		PostQuitMessage(0);
		return 0;
	}
	return DefWindowProc(hWnd, message, wParam, lParam);
}
</code></pre>
<p>wieso gibt es diese konstante bei mir nicht (genauso wie LWA_Alpha und die funktion SetLayeredWindowAttributes)?</p>
<p>MfG, Herr-Vorragend</p>
<p>P.S.: Ich hab windows xp</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/94680/ws_ex_layered-es-scheint-nicht-definiert-zu-sein</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 01:03:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/94680.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Dec 2004 18:08:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sat, 11 Dec 2004 18:08:08 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich habe Platform SDK February 2003 und habe dort von WS_EX_LAYERED gelesen, welches man bei CreateWindowEx setzen kann. Ich laß auch im internet, dass ich bevor ich windows.h einbinde, _WIN32_WINNT auf 0x0500 definieren muss. Allerdings gibt es die konstante WS_EX_LAYERED nicht, egal was ich mache.</p>
<p>hier das script (ganz simpel):</p>
<pre><code class="language-cpp">#define _WIN32_WINNT 0x0500 
#include &lt;windows.h&gt;

LRESULT CALLBACK WndProc	(HWND, UINT, WPARAM, LPARAM);

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
	static TCHAR szAppName[] = &quot;Bla&quot;;
	HWND		hWnd;
	MSG			msg;
	WNDCLASS	wndclass;

	wndclass.style			= CS_HREDRAW | CS_VREDRAW;
	wndclass.lpfnWndProc	= WndProc;
	wndclass.cbClsExtra		= 0;
	wndclass.cbWndExtra		= 0;
	wndclass.hInstance		= hInstance;
	wndclass.hIcon			= LoadIcon(NULL, IDI_APPLICATION);
	wndclass.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wndclass.hbrBackground	= (HBRUSH) GetStockObject(WHITE_BRUSH);
	wndclass.lpszMenuName	= NULL;
	wndclass.lpszClassName	= szAppName;

	RegisterClass(&amp;wndclass);

	hWnd = CreateWindowEx(	WS_EX_LAYERED,
							szAppName,
							&quot;Bla&quot;,
							WS_OVERLAPPEDWINDOW | WS_EX_LAYERED,
							CW_USEDEFAULT,
							CW_USEDEFAULT,
							CW_USEDEFAULT,
							CW_USEDEFAULT,
							NULL,
							NULL,
							hInstance,
							NULL);

	ShowWindow(hWnd, iCmdShow);
	UpdateWindow(hWnd);

	while (GetMessage(&amp;msg, NULL, 0, 0))
	{
		TranslateMessage(&amp;msg);
		DispatchMessage(&amp;msg);
	}
	return msg.wParam;
}

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{

	switch (message)
	{
	case WM_CREATE:

		return 0;

	case WM_DESTROY:
		PostQuitMessage(0);
		return 0;
	}
	return DefWindowProc(hWnd, message, wParam, lParam);
}
</code></pre>
<p>wieso gibt es diese konstante bei mir nicht (genauso wie LWA_Alpha und die funktion SetLayeredWindowAttributes)?</p>
<p>MfG, Herr-Vorragend</p>
<p>P.S.: Ich hab windows xp</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671073</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671073</guid><dc:creator><![CDATA[Herr-Vorragend]]></dc:creator><pubDate>Sat, 11 Dec 2004 18:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sat, 11 Dec 2004 18:30:38 GMT]]></title><description><![CDATA[<p>WinUser.h schrieb:</p>
<blockquote>
<p>#if(_WIN32_WINNT &gt;= 0x0500)<br />
#define WS_EX_LAYERED 0x00080000</p>
<p>#endif /* _WIN32_WINNT &gt;= 0x0500 */</p>
</blockquote>
<p>Guck mal was in deiner WinUser.h steht.</p>
<p>Btw: den ex-Style gibt man nicht auch noch als normalen Style an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671092</guid><dc:creator><![CDATA[D*niel *chumann]]></dc:creator><pubDate>Sat, 11 Dec 2004 18:30:38 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sat, 11 Dec 2004 18:35:18 GMT]]></title><description><![CDATA[<p>Hast Du das PSDK auch in deine IDE eingebunden (sind die PSDK-Verzeichnisse als erstes bei den Include-Ordnern genannnt)?</p>
<p>In der winuser.h steht definitiv:</p>
<pre><code class="language-cpp">#if(_WIN32_WINNT &gt;= 0x0500)
#define WS_EX_LAYERED           0x00080000

#endif /* _WIN32_WINNT &gt;= 0x0500 */
</code></pre>
<p>Kann höchstens sein das deine IDE dein PSDK vom Februar 2003 nicht kennt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671099</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Sat, 11 Dec 2004 18:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sat, 11 Dec 2004 19:05:01 GMT]]></title><description><![CDATA[<p>also in der winuser.h steht überhaupt nichts von WS_EX_LAYERED...</p>
<p>und wieso steht es nicht in der datei, wird aber in der dazugehörigen hilfe beschrieben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671129</guid><dc:creator><![CDATA[Herr-Vorragend]]></dc:creator><pubDate>Sat, 11 Dec 2004 19:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sat, 11 Dec 2004 20:32:03 GMT]]></title><description><![CDATA[<p>Herr-Vorragend schrieb:</p>
<blockquote>
<p>also in der winuser.h steht überhaupt nichts von WS_EX_LAYERED...</p>
<p>und wieso steht es nicht in der datei, wird aber in der dazugehörigen hilfe beschrieben?</p>
</blockquote>
<p>Tja, dann hast Du <strong>nicht</strong> das Platform SDK vom Februar 2003, denn aus genau der winuser.h hab ich obigen Code kopiert (oder Du schaust in die veraltete, vom Compiler mitgelieferte winuser.h, womit ich erneut auf mein voriges Posting hinweisen möchte: Kennt deine IDE die Verzeichnisse des installierten PSDK's?).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671208</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671208</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Sat, 11 Dec 2004 20:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sun, 12 Dec 2004 12:46:20 GMT]]></title><description><![CDATA[<p>keine ahnung, wo kann man das denn nachschauen? also ich habe nach der installation von dem psdk den menüpunkt &quot;Register PSDK Directories with Visual Studio&quot; aufgerufen...</p>
<p>und in der Datei winuser.h, im verzeichnis D:\Microsoft PSDK\include steht bei mir nichts über WS_EX_LAYERED.</p>
<p>Allerdings habe ich eben gesehen, dass es in der datei winuser.rh steht, jedoch ist die datei nur knapp 50kb groß, sonst hätte ich sie einfach umbenannt in winuser.h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671529</guid><dc:creator><![CDATA[Herr-Vorragend]]></dc:creator><pubDate>Sun, 12 Dec 2004 12:46:20 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sun, 12 Dec 2004 15:44:08 GMT]]></title><description><![CDATA[<p>Dann stimmt irgendwas mit deinem Platform SDK nicht!<br />
Bei mir steht in der winuser.h exakt dasselbe wie bei hepi und zwar in den Zeilen 2413-2416</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671642</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671642</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Sun, 12 Dec 2004 15:44:08 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sun, 12 Dec 2004 16:29:22 GMT]]></title><description><![CDATA[<p>ich habs jetzt noch mal neu installiert und jetzt steht's drin.</p>
<p>allerdings funktioniert es immernoch nicht. wie kann ich denn sehen, ob die include-dateien des PSDK eine höhere &quot;priorität&quot; haben als die anderen include dateien?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671681</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671681</guid><dc:creator><![CDATA[Herr-Vorragend]]></dc:creator><pubDate>Sun, 12 Dec 2004 16:29:22 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sun, 12 Dec 2004 16:38:06 GMT]]></title><description><![CDATA[<p>Anhand der Reihenfolge unter Extras &gt; Optionen &gt; Verzeichnisse <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/671695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671695</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Dec 2004 16:38:06 GMT</pubDate></item><item><title><![CDATA[Reply to WS_EX_LAYERED - Es scheint nicht definiert zu sein... on Sun, 12 Dec 2004 16:44:20 GMT]]></title><description><![CDATA[<p>tausend dank, jetzt funktionierts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/671703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671703</guid><dc:creator><![CDATA[Herr-Vorragend]]></dc:creator><pubDate>Sun, 12 Dec 2004 16:44:20 GMT</pubDate></item></channel></rss>