diff dw.h @ 1790:209c57a14b09

Rewrite dw_window_set_style() on Windows to properly handle the static control. Apparently the first few style bits are not bits at all, they are a number of individual values, so combining them like bits causes all sorts of havok.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 04 Aug 2012 07:35:13 +0000
parents 9d499b162fe1
children 9304241b7b33
line wrap: on
line diff
--- a/dw.h	Sat Aug 04 01:14:17 2012 +0000
+++ b/dw.h	Sat Aug 04 07:35:13 2012 +0000
@@ -503,11 +503,11 @@
 #define DW_DT_CENTER             SS_CENTER
 #define DW_DT_RIGHT              SS_RIGHT
 #define DW_DT_TOP                0
-#define DW_DT_VCENTER            SS_NOPREFIX
+#define DW_DT_VCENTER            (1 << 29)
 #define DW_DT_BOTTOM             0
 #define DW_DT_HALFTONE           0
 #define DW_DT_MNEMONIC           0
-#define DW_DT_WORDBREAK          SS_LEFT
+#define DW_DT_WORDBREAK          (1 << 28)
 #define DW_DT_ERASERECT          0
 
 #define DW_FCF_CLOSEBUTTON       0