<?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[Dummy-Frage: WM_COMMAND Butto abfangen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ioch bin neu bei der c++ Programmierung.</p>
<p>Wie kann ich in WM_COMMAND: abfangen, welcher Button geklickt wurde und was dann passieren soll?</p>
<p>Ich habe folgendes programmiert, geht aber leider nicht:</p>
<pre><code>case WM_COMMAND:
        switch (HIWORD (wParam))
        {
        case BS_PUSHBUTTON:

        if (SendMessage (BS_PUSHBUTTON, BN_CLICKED , 0, 0))
        {
        MessageBox ( NULL, TEXT(&quot;Sodelle&quot;), &quot;geht&quot;, MB_ICONERROR); 
        int GetWindowText( 
  HWND hwndEdit,        
  LPTSTR dobsa,  
  int nMaxCount     
                 );
        MessageBox ( NULL, TEXT(&quot;Hallo&quot;), dobsa, MB_ICONERROR);
        }
        return 0;
   }
</code></pre>
<p>Könnt Ihr mir bitte helfen?</p>
<p>Vielen Dank<br />
Majo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/79388/dummy-frage-wm_command-butto-abfangen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 20:09:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/79388.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Jul 2004 17:39:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dummy-Frage: WM_COMMAND Butto abfangen on Sat, 10 Jul 2004 17:39:44 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ioch bin neu bei der c++ Programmierung.</p>
<p>Wie kann ich in WM_COMMAND: abfangen, welcher Button geklickt wurde und was dann passieren soll?</p>
<p>Ich habe folgendes programmiert, geht aber leider nicht:</p>
<pre><code>case WM_COMMAND:
        switch (HIWORD (wParam))
        {
        case BS_PUSHBUTTON:

        if (SendMessage (BS_PUSHBUTTON, BN_CLICKED , 0, 0))
        {
        MessageBox ( NULL, TEXT(&quot;Sodelle&quot;), &quot;geht&quot;, MB_ICONERROR); 
        int GetWindowText( 
  HWND hwndEdit,        
  LPTSTR dobsa,  
  int nMaxCount     
                 );
        MessageBox ( NULL, TEXT(&quot;Hallo&quot;), dobsa, MB_ICONERROR);
        }
        return 0;
   }
</code></pre>
<p>Könnt Ihr mir bitte helfen?</p>
<p>Vielen Dank<br />
Majo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557656</guid><dc:creator><![CDATA[Majo]]></dc:creator><pubDate>Sat, 10 Jul 2004 17:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to Dummy-Frage: WM_COMMAND Butto abfangen on Sat, 10 Jul 2004 18:24:06 GMT]]></title><description><![CDATA[<p>Dein Anfang ist Müll.</p>
<p>So kann man nix lernen. Blind losprobieren ist nur Zeitverschwendung.<br />
Geh auf <a href="http://www.winapi.net" rel="nofollow">www.winapi.net</a> und les dir die Tutorials durch.</p>
<p>MfG Tolga.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557692</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Sat, 10 Jul 2004 18:24:06 GMT</pubDate></item><item><title><![CDATA[Reply to Dummy-Frage: WM_COMMAND Butto abfangen on Sat, 10 Jul 2004 19:04:51 GMT]]></title><description><![CDATA[<p>MSDN zu WM_COMMAND schrieb:</p>
<blockquote>
<p>wParam<br />
The high-order word specifies the notification code if the message is from a control. If the message is from an accelerator, this value is 1. If the message is from a menu, this value is zero.<br />
<strong>The low-order word specifies the identifier of the menu item, control, or accelerator.</strong></p>
<p>lParam<br />
Handle to the control sending the message if the message is from a control. Otherwise, this parameter is NULL.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/557721</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557721</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 10 Jul 2004 19:04:51 GMT</pubDate></item></channel></rss>