Dialog autoradio buttons are initially not tabstops

Medland, Bill Bill.Medland at accpac.com
Mon Dec 10 15:56:59 CST 2001


 <<diff33.txt>> 
-------------- next part --------------
Bill Medland (medbi01 at accpac.com)
Ensure that WS_TABSTOP is cleared when AUTORADIO buttons are created; it must
agree with the initial unchecked state of the button.  (Strangely this is not
enforced by the button itself).

Index: wine/windows/dialog.c
===================================================================
RCS file: /home/wine/wine/windows/dialog.c,v
retrieving revision 1.96
diff -u -r1.96 dialog.c
--- wine/windows/dialog.c	2001/12/06 22:21:36	1.96
+++ wine/windows/dialog.c	2001/12/10 20:25:14
@@ -379,6 +379,12 @@
             ERR("Unknown built-in class id %04x\n", id );
         }
         p += 2;
+        /* While we can still see the style do some patching.
+         * Auto push buttons do not have WS_TABSTOP; it is set by the
+         * button being set.
+         */
+        if (id == 0x80 && (info->style & 0x0f) == BS_AUTORADIOBUTTON)
+            info->style &= ~WS_TABSTOP;
     }
     else
     {


More information about the wine-patches mailing list