<?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[WM_COMMAND auswerten]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich habe eine Procedur bei der ein integerwert übergeben wird</p>
<pre><code>void	Lade_Daten(int id){
:
:
}
</code></pre>
<p>diese möcht ich über meinen Eventhandler aufrufen</p>
<pre><code class="language-cpp">switch (message){
		case WM_COMMAND:
			wmId= LOWORD(wParam); 
			wmEvent = HIWORD(wParam); 
			parameter = LOWORD(lParam); 
			switch (wmId){
				case BUTTON_LOAD:
				Lade_Daten(parameter)
				break;
</code></pre>
<p>mit post message möchte ich dem Eventhanler den entsprechenen Aufruf geben</p>
<pre><code>int id;
id = -1;
PostMessage(Wnd_Main, WM_COMMAND, (WPARAM)BUTTON_LOAD, (LPARAM)MAKELONG(id, 0));
</code></pre>
<p>geht mit positivn Zahlen, aber nicht mit z.B. -1, wo liegt mein Fehler, kann mir jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177237/wm_command-auswerten</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 06:20:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177237.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Mar 2007 12:42:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WM_COMMAND auswerten on Thu, 29 Mar 2007 12:42:34 GMT]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich habe eine Procedur bei der ein integerwert übergeben wird</p>
<pre><code>void	Lade_Daten(int id){
:
:
}
</code></pre>
<p>diese möcht ich über meinen Eventhandler aufrufen</p>
<pre><code class="language-cpp">switch (message){
		case WM_COMMAND:
			wmId= LOWORD(wParam); 
			wmEvent = HIWORD(wParam); 
			parameter = LOWORD(lParam); 
			switch (wmId){
				case BUTTON_LOAD:
				Lade_Daten(parameter)
				break;
</code></pre>
<p>mit post message möchte ich dem Eventhanler den entsprechenen Aufruf geben</p>
<pre><code>int id;
id = -1;
PostMessage(Wnd_Main, WM_COMMAND, (WPARAM)BUTTON_LOAD, (LPARAM)MAKELONG(id, 0));
</code></pre>
<p>geht mit positivn Zahlen, aber nicht mit z.B. -1, wo liegt mein Fehler, kann mir jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255306</guid><dc:creator><![CDATA[WinApi ist net so einfach]]></dc:creator><pubDate>Thu, 29 Mar 2007 12:42:34 GMT</pubDate></item><item><title><![CDATA[Reply to WM_COMMAND auswerten on Thu, 29 Mar 2007 13:00:58 GMT]]></title><description><![CDATA[<p>ganz einfach</p>
<p>MAKELONG = makro welches ein DWORD zurueck gibt<br />
und<br />
DWORD = unsigned long</p>
<p>dh vorteichenlos {o;</p>
<p>uebergib es einfach ohne des MAKELONG, zahlen wie 0 1 oder -1 kannst du an LPARAM ohne probleme uebergeben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255319</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 29 Mar 2007 13:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to WM_COMMAND auswerten on Thu, 29 Mar 2007 13:18:00 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">PostMessage(Wnd_Main, WM_COMMAND, (WPARAM)BUTTON_LOAD, (LPARAM)(-1));
</code></pre>
<p>bei Übergabe von -1 bekomme ich immer LOWORD(lParam) = 65535 als parameter übergeben, geb ich z.B 4 ein bekomme ich auch 4</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255330</guid><dc:creator><![CDATA[WinApi ist net so einfach]]></dc:creator><pubDate>Thu, 29 Mar 2007 13:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to WM_COMMAND auswerten on Thu, 29 Mar 2007 13:23:56 GMT]]></title><description><![CDATA[<p>WinApi ist net so einfach schrieb:</p>
<blockquote>
<pre><code class="language-cpp">parameter = LOWORD(lParam);
</code></pre>
</blockquote>
<p>Du zerteilst (long)lParam in short low und short high; long = 32 Bit, short = 16 Bit</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255337</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255337</guid><dc:creator><![CDATA[keksekekse]]></dc:creator><pubDate>Thu, 29 Mar 2007 13:23:56 GMT</pubDate></item><item><title><![CDATA[Reply to WM_COMMAND auswerten on Thu, 29 Mar 2007 13:34:46 GMT]]></title><description><![CDATA[<p>Ah-&gt;ja, danke für den Hinweis, jetzt klapptz.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1255349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1255349</guid><dc:creator><![CDATA[WinApi ist net so einfach]]></dc:creator><pubDate>Thu, 29 Mar 2007 13:34:46 GMT</pubDate></item></channel></rss>