listbox border style correction

Medland, Bill Bill.Medland at accpac.com
Mon Jul 16 18:02:12 CDT 2001


 <<diff.txt>> 
-------------- next part --------------
Bill Medland (medbi01 at accpac.com)
As for the edit control, the style of the borders on the list control
is modified in the dialog loading code, not in the control itself.

Index: wine/controls/listbox.c
===================================================================
RCS file: /home/wine/wine/controls/listbox.c,v
retrieving revision 1.75
diff -u -r1.75 listbox.c
--- wine/controls/listbox.c	2001/05/11 20:03:40	1.75
+++ wine/controls/listbox.c	2001/07/16 22:32:22
@@ -2481,17 +2481,9 @@
 	    }
 	    case WM_NCCREATE:
 	    {
-	        /*
-		 * When a listbox is not in a combobox and the look
-		 * is win95,  the WS_BORDER style is replaced with 
-		 * the WS_EX_CLIENTEDGE style.
-		 */
-	        if ( (TWEAK_WineLook > WIN31_LOOK) &&
-		     (wnd->dwStyle & WS_BORDER) )
-		{
-	            wnd->dwExStyle |= WS_EX_CLIENTEDGE;
-		    wnd->dwStyle     &= ~ WS_BORDER;
-		}
+                /* The conversion from WS_BORDER to WS_CLIENTEDGE is
+                 * handled in the dialog loading code.
+                 */
 	    }
 	}
 


More information about the wine-patches mailing list