Dialog autoradio buttons are initially not tabstops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 <<diff33.txt>> 
Bill Medland (medbi01@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
     {

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux