<?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[Problem beim checken von RadioButtons]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe folgendes Problem:</p>
<p>Ich habe in einem Dialogfeld mehrere RadioButtons, die zu zwei Gruppen gehören. In den Gruppen darf dann immer nur ein RadioButton aktiv sein. Bei der ersten Gruppe funktioniert das auch. Allerdings immer wenn ich einen Radiobutton der zweiten Gruppe drücke, verschwindet der aus der ersten Gruppe (der RadioButton der vorher an war ist nun aus). Wenn ich dann wieder einen RadioButton aus der ersten Gruppe checke bleibt die Eintrag in der zweiten erhalten. Ich finde den Fehler einfach nicht...</p>
<p>Der Dialogfeld wird über Ressourcen erstellt:</p>
<pre><code>IDD_INTEROPT DIALOGEX 6,6,289,168
CAPTION &quot;Interface Optionen&quot;
FONT 8,&quot;MS Sans Serif&quot;
STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE 0x00000000
BEGIN

...
   CONTROL &quot;Taskleiste&quot;,SHOW_TASK,&quot;Button&quot;,BS_RADIOBUTTON | WS_CHILD | WS_VISIBLE,24,25,106,8,0x00000000
  CONTROL &quot;Systray &amp;&amp; Taskleiste&quot;,SHOW_SYSTASK,&quot;Button&quot;,BS_RADIOBUTTON | WS_CHILD | WS_VISIBLE,24,37,106,8,0x00000000
  CONTROL &quot;Systray&quot;,SHOW_SYS,&quot;Button&quot;,BS_RADIOBUTTON | WS_CHILD | WS_VISIBLE,24,49,96,9,0x00000000
  CONTROL &quot;Schließen&quot;,OIDC_GRP2,&quot;Button&quot;,0x50000007,10,73,130,48,0x00000000
  CONTROL &quot;Programm beenden&quot;,OIDC_RBN3,&quot;Button&quot;,0x50010009,20,88,102,9,0x00000000
  CONTROL &quot;Programm minimieren&quot;,OIDC_RBN4,&quot;Button&quot;,0x50010009,20,101,108,11,0x00000000
...
</code></pre>
<p>So werden die Klicks verarbeitet:</p>
<pre><code class="language-cpp">case WM_COMMAND:
			switch(LOWORD(wParam))
			{
...
				case SHOW_TASK:               //Nur in der Taskleiste anzeigen
					CheckRadioButton(hwnd,SHOW_TASK,SHOW_SYS,SHOW_TASK);
					akt_optionen.show = TASKBAR;
					break;
				case SHOW_SYSTASK:            //In Systray und Taskleiste anzeigen
					CheckRadioButton(hwnd,SHOW_TASK,SHOW_SYS,SHOW_SYSTASK);
					akt_optionen.show = SYSTASK;
					break;
				case SHOW_SYS:                //Nur im Systray anzeigen
					CheckRadioButton(hwnd,SHOW_TASK,SHOW_SYS,SHOW_SYS);
					akt_optionen.show = SYSTRAY;
					break;
				case OIDC_RBN3:                //Programm bei X beenden
					CheckRadioButton(hwnd,OIDC_RBN3,OIDC_RBN4,OIDC_RBN3);
					akt_optionen.CloseOnX = true;
					break;
				case OIDC_RBN4:                //Programm bei X minimieren
					CheckRadioButton(hwnd,OIDC_RBN3,OIDC_RBN4,OIDC_RBN4);
					akt_optionen.CloseOnX = false;
					break;
...
			}
	      return true;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/123659/problem-beim-checken-von-radiobuttons</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Jul 2026 23:55:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123659.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Oct 2005 20:01:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem beim checken von RadioButtons on Tue, 18 Oct 2005 20:01:01 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe folgendes Problem:</p>
<p>Ich habe in einem Dialogfeld mehrere RadioButtons, die zu zwei Gruppen gehören. In den Gruppen darf dann immer nur ein RadioButton aktiv sein. Bei der ersten Gruppe funktioniert das auch. Allerdings immer wenn ich einen Radiobutton der zweiten Gruppe drücke, verschwindet der aus der ersten Gruppe (der RadioButton der vorher an war ist nun aus). Wenn ich dann wieder einen RadioButton aus der ersten Gruppe checke bleibt die Eintrag in der zweiten erhalten. Ich finde den Fehler einfach nicht...</p>
<p>Der Dialogfeld wird über Ressourcen erstellt:</p>
<pre><code>IDD_INTEROPT DIALOGEX 6,6,289,168
CAPTION &quot;Interface Optionen&quot;
FONT 8,&quot;MS Sans Serif&quot;
STYLE WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE 0x00000000
BEGIN

...
   CONTROL &quot;Taskleiste&quot;,SHOW_TASK,&quot;Button&quot;,BS_RADIOBUTTON | WS_CHILD | WS_VISIBLE,24,25,106,8,0x00000000
  CONTROL &quot;Systray &amp;&amp; Taskleiste&quot;,SHOW_SYSTASK,&quot;Button&quot;,BS_RADIOBUTTON | WS_CHILD | WS_VISIBLE,24,37,106,8,0x00000000
  CONTROL &quot;Systray&quot;,SHOW_SYS,&quot;Button&quot;,BS_RADIOBUTTON | WS_CHILD | WS_VISIBLE,24,49,96,9,0x00000000
  CONTROL &quot;Schließen&quot;,OIDC_GRP2,&quot;Button&quot;,0x50000007,10,73,130,48,0x00000000
  CONTROL &quot;Programm beenden&quot;,OIDC_RBN3,&quot;Button&quot;,0x50010009,20,88,102,9,0x00000000
  CONTROL &quot;Programm minimieren&quot;,OIDC_RBN4,&quot;Button&quot;,0x50010009,20,101,108,11,0x00000000
...
</code></pre>
<p>So werden die Klicks verarbeitet:</p>
<pre><code class="language-cpp">case WM_COMMAND:
			switch(LOWORD(wParam))
			{
...
				case SHOW_TASK:               //Nur in der Taskleiste anzeigen
					CheckRadioButton(hwnd,SHOW_TASK,SHOW_SYS,SHOW_TASK);
					akt_optionen.show = TASKBAR;
					break;
				case SHOW_SYSTASK:            //In Systray und Taskleiste anzeigen
					CheckRadioButton(hwnd,SHOW_TASK,SHOW_SYS,SHOW_SYSTASK);
					akt_optionen.show = SYSTASK;
					break;
				case SHOW_SYS:                //Nur im Systray anzeigen
					CheckRadioButton(hwnd,SHOW_TASK,SHOW_SYS,SHOW_SYS);
					akt_optionen.show = SYSTRAY;
					break;
				case OIDC_RBN3:                //Programm bei X beenden
					CheckRadioButton(hwnd,OIDC_RBN3,OIDC_RBN4,OIDC_RBN3);
					akt_optionen.CloseOnX = true;
					break;
				case OIDC_RBN4:                //Programm bei X minimieren
					CheckRadioButton(hwnd,OIDC_RBN3,OIDC_RBN4,OIDC_RBN4);
					akt_optionen.CloseOnX = false;
					break;
...
			}
	      return true;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/895529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895529</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Tue, 18 Oct 2005 20:01:01 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim checken von RadioButtons on Tue, 18 Oct 2005 21:05:57 GMT]]></title><description><![CDATA[<p>is kein Fehler...is modal mann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895605</guid><dc:creator><![CDATA[Blödimann]]></dc:creator><pubDate>Tue, 18 Oct 2005 21:05:57 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim checken von RadioButtons on Tue, 18 Oct 2005 21:20:14 GMT]]></title><description><![CDATA[<p>Blödimann schrieb:</p>
<blockquote>
<p>is kein Fehler...is modal mann</p>
</blockquote>
<p>Das hat nix mit modal / nicht modal zu tun, sondern liegt daran,<br />
dass du den Stil WS_GROUP beim ersten Radiobutton einer Gruppe setzen musst.</p>
<p>Beispiel:</p>
<p>-- Gruppe 1 --<br />
( ) Radio 1 WS_GROUP<br />
( ) Radio 2<br />
( ) Radio 3</p>
<p>-- Gruppe 2 --<br />
( ) Radio 4 WS_GROUP<br />
( ) Radio 5<br />
( ) Radio 6</p>
<p>Doku findest du hier:<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/Windowing/Windows/WindowReference/WindowStyles.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/Windowing/Windows/WindowReference/WindowStyles.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/895622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895622</guid><dc:creator><![CDATA[tvdog]]></dc:creator><pubDate>Tue, 18 Oct 2005 21:20:14 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim checken von RadioButtons on Tue, 18 Oct 2005 21:36:06 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/9946">@tvdog</a>: thk, das wars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895649</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Tue, 18 Oct 2005 21:36:06 GMT</pubDate></item></channel></rss>