<?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[BM_GETCHECK funzt nich]]></title><description><![CDATA[<p>Hab folgenden Code und einen Autoradiobutton ( HWND rbnormal ) dazu.<br />
Jetzt wird aber irgendwie trotz dieses if-blocks nichts was in ihm steht ausgeführt, auch wenn das optionsfeld aktiviert ist.</p>
<p>Was is da falsch dran?</p>
<pre><code class="language-cpp">if(SendMessage(rbnormal,BM_GETCHECK,1,0))
{
     //...	
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/77125/bm_getcheck-funzt-nich</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 16:00:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/77125.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jun 2004 18:04:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BM_GETCHECK funzt nich on Thu, 17 Jun 2004 18:04:55 GMT]]></title><description><![CDATA[<p>Hab folgenden Code und einen Autoradiobutton ( HWND rbnormal ) dazu.<br />
Jetzt wird aber irgendwie trotz dieses if-blocks nichts was in ihm steht ausgeführt, auch wenn das optionsfeld aktiviert ist.</p>
<p>Was is da falsch dran?</p>
<pre><code class="language-cpp">if(SendMessage(rbnormal,BM_GETCHECK,1,0))
{
     //...	
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/542645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542645</guid><dc:creator><![CDATA[JoLu]]></dc:creator><pubDate>Thu, 17 Jun 2004 18:04:55 GMT</pubDate></item><item><title><![CDATA[Reply to BM_GETCHECK funzt nich on Thu, 17 Jun 2004 18:11:38 GMT]]></title><description><![CDATA[<p>Ich vermute das liegt daran, dass du den Return-Wert nicht auf bestimmte Werte überprüfst.</p>
<p>Nachdem ich mir die Doku angesehen habe, würde ich folgendes Konstrukt verwenden:</p>
<pre><code class="language-cpp">switch( SendMessage(rbnormal,BM_GETCHECK,0,0) )
{
case BST_CHECKED:
break;
case BST_INDETERMINATE:
break;
case BST_UNCHECKED: //Dieses Makro ist übrigens '0'
break;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/542649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542649</guid><dc:creator><![CDATA[Aziz]]></dc:creator><pubDate>Thu, 17 Jun 2004 18:11:38 GMT</pubDate></item><item><title><![CDATA[Reply to BM_GETCHECK funzt nich on Thu, 17 Jun 2004 18:25:42 GMT]]></title><description><![CDATA[<p>ups, ich hab nen blöden fehler gmacht, hab die HWND Variable ohne static deklariert. nui</p>
<p>Jetz klappts scho</p>
]]></description><link>https://www.c-plusplus.net/forum/post/542657</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542657</guid><dc:creator><![CDATA[JoLu]]></dc:creator><pubDate>Thu, 17 Jun 2004 18:25:42 GMT</pubDate></item></channel></rss>