diff dw.h @ 1535:2913bb58f439

Added DW_FCF_COMPOSITED frame creation flag, used only on Windows currently... it enabled composited (translucent) windows on supported versions of Windows (7 and Vista). Deprecated the DW_FCF_VERTSCROLL and DW_FCF_HORZSCROLL flags... use scrollboxes instead. Removed a terrible hack of using the WS_VSCROLL flag to pass task list... applications require a recompile so we will still handle the old WS_VSCROLL flag until version 3.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 11 Jan 2012 05:36:00 +0000
parents 5facb5380944
children 1c6593b0ce45
line wrap: on
line diff
--- a/dw.h	Mon Jan 09 16:04:00 2012 +0000
+++ b/dw.h	Wed Jan 11 05:36:00 2012 +0000
@@ -133,8 +133,6 @@
 #define DW_FCF_MINBUTTON         FCF_MINBUTTON
 #define DW_FCF_MAXBUTTON         FCF_MAXBUTTON
 #define DW_FCF_MINMAX            FCF_MINMAX
-#define DW_FCF_VERTSCROLL        FCF_VERTSCROLL
-#define DW_FCF_HORZSCROLL        FCF_HORZSCROLL
 #define DW_FCF_DLGBORDER         FCF_DLGBORDER
 #define DW_FCF_BORDER            FCF_BORDER
 #define DW_FCF_TASKLIST          FCF_TASKLIST
@@ -344,8 +342,6 @@
 #define DW_FCF_MINBUTTON         (1 << 2) /* NSMiniaturizableWindowMask */
 #define DW_FCF_MAXBUTTON         0
 #define DW_FCF_MINMAX            (1 << 2) /* NSMiniaturizableWindowMask */
-#define DW_FCF_VERTSCROLL        0
-#define DW_FCF_HORZSCROLL        0
 #define DW_FCF_DLGBORDER         0
 #define DW_FCF_BORDER            0
 #define DW_FCF_TASKLIST          0
@@ -525,11 +521,9 @@
 #define DW_FCF_MINBUTTON         WS_MINIMIZEBOX
 #define DW_FCF_MAXBUTTON         WS_MAXIMIZEBOX
 #define DW_FCF_MINMAX            (WS_MINIMIZEBOX|WS_MAXIMIZEBOX)
-#define DW_FCF_VERTSCROLL        WS_VSCROLL
-#define DW_FCF_HORZSCROLL        WS_HSCROLL
 #define DW_FCF_DLGBORDER         WS_DLGFRAME
 #define DW_FCF_BORDER            WS_BORDER
-#define DW_FCF_TASKLIST          WS_VSCROLL
+#define DW_FCF_TASKLIST          (1 << 1)
 #define DW_FCF_NOMOVEWITHOWNER   0
 #define DW_FCF_SYSMODAL          0
 #define DW_FCF_HIDEBUTTON        WS_MINIMIZEBOX
@@ -537,6 +531,7 @@
 #define DW_FCF_AUTOICON          0
 #define DW_FCF_MAXIMIZE          WS_MAXIMIZE
 #define DW_FCF_MINIMIZE          WS_MINIMIZE
+#define DW_FCF_COMPOSITED        1
 
 #define DW_CFA_BITMAPORICON      1
 #define DW_CFA_STRING            (1 << 1)
@@ -806,8 +801,6 @@
 #define DW_FCF_MINBUTTON         Ph_WM_RENDER_MIN
 #define DW_FCF_MAXBUTTON         Ph_WM_RENDER_MAX
 #define DW_FCF_MINMAX            (Ph_WM_RENDER_MIN|Ph_WM_RENDER_MAX)
-#define DW_FCF_VERTSCROLL        0
-#define DW_FCF_HORZSCROLL        0
 #define DW_FCF_DLGBORDER         0
 #define DW_FCF_BORDER            Ph_WM_RENDER_BORDER
 #define DW_FCF_TASKLIST          0
@@ -989,8 +982,6 @@
 #define DW_FCF_MINBUTTON         (1 << 4)
 #define DW_FCF_MAXBUTTON         (1 << 5)
 #define DW_FCF_MINMAX            (1 << 6)
-#define DW_FCF_VERTSCROLL        (1 << 7)
-#define DW_FCF_HORZSCROLL        (1 << 8)
 #define DW_FCF_DLGBORDER         (1 << 9)
 #define DW_FCF_BORDER            (1 << 10)
 #define DW_FCF_TASKLIST          (1 << 12)
@@ -1348,6 +1339,8 @@
 #define BOXVERT DW_VERT
 #define DW_FCF_SHELLPOSITION     0
 #define DW_FCF_NOBYTEALIGN       0
+#define DW_FCF_VERTSCROLL        0
+#define DW_FCF_HORZSCROLL        0
 
 /* Scrolling constants */
 #define DW_SCROLL_UP 0
@@ -1425,6 +1418,10 @@
 #define DW_POINTER_TO_UINT(a) ((unsigned int)a)
 #endif
 
+#ifndef DW_FCF_COMPOSITED
+#define DW_FCF_COMPOSITED        0
+#endif
+
 #ifndef API
 #define API
 #endif