<?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[STN_CLICKED reagiert nicht]]></title><description><![CDATA[<pre><code class="language-cpp">case WM_CREATE:
			 {
					  hStatic=CreateWindow(&quot;STATIC&quot;, &quot;&quot;, WS_CHILD | WS_VISIBLE | SS_LEFT ,
					  100, 100, 100, 100, 
					  hwnd, (HMENU)123, hInst, NULL);
					  return 0; 
			 }

		 case STN_CLICKED:
			 {
				  	  MessageBox(0,&quot;lol&quot;,0,0);
					  return 0 ;
			 }
</code></pre>
<p>Wieso wird bei einem Click auf das static keine Message geschickt?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/97111/stn_clicked-reagiert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 05:20:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/97111.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Jan 2005 15:28:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to STN_CLICKED reagiert nicht on Fri, 07 Jan 2005 15:28:09 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">case WM_CREATE:
			 {
					  hStatic=CreateWindow(&quot;STATIC&quot;, &quot;&quot;, WS_CHILD | WS_VISIBLE | SS_LEFT ,
					  100, 100, 100, 100, 
					  hwnd, (HMENU)123, hInst, NULL);
					  return 0; 
			 }

		 case STN_CLICKED:
			 {
				  	  MessageBox(0,&quot;lol&quot;,0,0);
					  return 0 ;
			 }
</code></pre>
<p>Wieso wird bei einem Click auf das static keine Message geschickt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689856</guid><dc:creator><![CDATA[rulitz]]></dc:creator><pubDate>Fri, 07 Jan 2005 15:28:09 GMT</pubDate></item><item><title><![CDATA[Reply to STN_CLICKED reagiert nicht on Fri, 07 Jan 2005 18:05:28 GMT]]></title><description><![CDATA[<p>Zunaechst einmal muss das Static Control den Static Style Notify haben:<br />
CreateWindowEx(0,&quot;static&quot;,NULL, SS_NOTIFY|...);</p>
<p>Die STN_CLICKED Notification Message ist eine Art Nebenmessage der<br />
WM_COMMAND Message, die im wParam mitgeliefert wird. Irgendwie so sollte das dann abgefragt werden:</p>
<pre><code class="language-cpp">LRESULT CALLBACK MessageHandler(HWND hwnd,UINT imsg,WPARAM wParam,LPARAM lParam){
 switch(imsg){
   ...
   case WM_COMMAND:
        switch HIWORD(wParam){
              case STN_CLICKED: // Anweisungen, die in diesem Fall
                                // ausgefuehrt werden sollen

...
 // Wie gesagt, die Message steckt im HIWORD(wParam), und ist Teil einer
 // WM_COMMAND Message
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/690036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/690036</guid><dc:creator><![CDATA[Mecnels]]></dc:creator><pubDate>Fri, 07 Jan 2005 18:05:28 GMT</pubDate></item></channel></rss>