Francois Gouget : user32/include: Don' t define the window and control styles if NOWINSTYLES is set.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Nov 8 06:43:05 CST 2006


Module: wine
Branch: master
Commit: b1602267f01d1280af042abe9553e9219313458e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b1602267f01d1280af042abe9553e9219313458e

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed Nov  8 01:05:20 2006 +0100

user32/include: Don't define the window and control styles if NOWINSTYLES is set.

---

 include/winuser.h |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/include/winuser.h b/include/winuser.h
index 8d68802..bb0ca0a 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -654,6 +654,7 @@ #define ODS_NOFOCUSRECT  0x0200 /* No fo
 #define ODS_COMBOBOXEDIT 0x1000 /* Edit of a combo box */
 
 /* Edit control styles */
+#ifndef NOWINSTYLES
 #define ES_LEFT         0x00000000
 #define ES_CENTER       0x00000001
 #define ES_RIGHT        0x00000002
@@ -669,6 +670,7 @@ #define ES_OEMCONVERT   0x00000400
 #define ES_READONLY     0x00000800
 #define ES_WANTRETURN   0x00001000
 #define ES_NUMBER       0x00002000
+#endif /* NOWINSTYLES */
 
 /* OEM Resource Ordinal Numbers */
 #ifdef OEMRESOURCE
@@ -1623,7 +1625,7 @@ #define SC_SEPARATOR    0xf00f
 #define SC_ICON   SC_MINIMIZE
 #define SC_ZOOM   SC_MAXIMIZE
 
-
+#ifndef NOWINSTYLES
 #define CS_VREDRAW          0x00000001
 #define CS_HREDRAW          0x00000002
 #define CS_KEYCVTWINDOW     0x00000004
@@ -1639,6 +1641,7 @@ #define CS_BYTEALIGNWINDOW  0x00002000
 #define CS_GLOBALCLASS      0x00004000
 #define CS_IME              0x00010000
 #define CS_DROPSHADOW       0x00020000
+#endif /* NOWINSTYLES */
 
 #define PRF_CHECKVISIBLE    0x00000001L
 #define PRF_NONCLIENT       0x00000002L
@@ -2142,6 +2145,7 @@ #define SB_CTL              2
 #define SB_BOTH             3
 
 /* Scrollbar styles */
+#ifndef NOWINSTYLES
 #define SBS_HORZ                    0x0000L
 #define SBS_VERT                    0x0001L
 #define SBS_TOPALIGN                0x0002L
@@ -2152,6 +2156,7 @@ #define SBS_SIZEBOXTOPLEFTALIGN     0x00
 #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
 #define SBS_SIZEBOX                 0x0008L
 #define SBS_SIZEGRIP                0x0010L
+#endif /* NOWINSTYLES */
 
 /* EnableScrollBar() flags */
 #define ESB_ENABLE_BOTH     0x0000
@@ -2291,6 +2296,7 @@ #define SIF_TRACKPOS        0x0010
 #define SIF_ALL             (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
 
 /* Listbox styles */
+#ifndef NOWINSTYLES
 #define LBS_NOTIFY               0x0001
 #define LBS_SORT                 0x0002
 #define LBS_NOREDRAW             0x0004
@@ -2308,6 +2314,7 @@ #define LBS_NODATA               0x2000
 #define LBS_NOSEL                0x4000
 #define LBS_COMBOBOX             0x8000
 #define LBS_STANDARD  (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
+#endif /* NOWINSTYLES */
 
 /* Listbox messages */
 #define LB_ADDSTRING           0x0180
@@ -2371,6 +2378,7 @@ #define LB_ERRSPACE         (-2)
 #define LB_CTLCODE          0L
 
 /* Combo box styles */
+#ifndef NOWINSTYLES
 #define CBS_SIMPLE            0x0001L
 #define CBS_DROPDOWN          0x0002L
 #define CBS_DROPDOWNLIST      0x0003L
@@ -2385,7 +2393,7 @@ #define CBS_DISABLENOSCROLL   0x0800L
 
 #define CBS_UPPERCASE	      0x2000L
 #define CBS_LOWERCASE	      0x4000L
-
+#endif /* NOWINSTYLES */
 
 /* Combo box messages */
 #define CB_GETEDITSEL            0x0140
@@ -3021,6 +3029,8 @@ typedef struct tagMINIMIZEDMETRICS {
     int iArrange;
 } MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS;
 
+#ifndef NOWINSTYLES
+
 /* Window Styles */
 #define WS_OVERLAPPED    0x00000000L
 #define WS_POPUP         0x80000000L
@@ -3083,6 +3093,8 @@ #define WS_EX_PALETTEWINDOW    (WS_EX_WI
 /* WINE internal... */
 #define WS_EX_TRAYWINDOW	0x80000000L
 
+#endif /* NOWINSTYLES */
+
 /* Window scrolling */
 #define SW_SCROLLCHILDREN      0x0001
 #define SW_INVALIDATE          0x0002




More information about the wine-cvs mailing list