comparison 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
comparison
equal deleted inserted replaced
1534:ad8181f70f31 1535:2913bb58f439
131 #define DW_FCF_MENU FCF_MENU 131 #define DW_FCF_MENU FCF_MENU
132 #define DW_FCF_SIZEBORDER FCF_SIZEBORDER 132 #define DW_FCF_SIZEBORDER FCF_SIZEBORDER
133 #define DW_FCF_MINBUTTON FCF_MINBUTTON 133 #define DW_FCF_MINBUTTON FCF_MINBUTTON
134 #define DW_FCF_MAXBUTTON FCF_MAXBUTTON 134 #define DW_FCF_MAXBUTTON FCF_MAXBUTTON
135 #define DW_FCF_MINMAX FCF_MINMAX 135 #define DW_FCF_MINMAX FCF_MINMAX
136 #define DW_FCF_VERTSCROLL FCF_VERTSCROLL
137 #define DW_FCF_HORZSCROLL FCF_HORZSCROLL
138 #define DW_FCF_DLGBORDER FCF_DLGBORDER 136 #define DW_FCF_DLGBORDER FCF_DLGBORDER
139 #define DW_FCF_BORDER FCF_BORDER 137 #define DW_FCF_BORDER FCF_BORDER
140 #define DW_FCF_TASKLIST FCF_TASKLIST 138 #define DW_FCF_TASKLIST FCF_TASKLIST
141 #define DW_FCF_NOMOVEWITHOWNER FCF_NOMOVEWITHOWNER 139 #define DW_FCF_NOMOVEWITHOWNER FCF_NOMOVEWITHOWNER
142 #define DW_FCF_SYSMODAL FCF_SYSMODAL 140 #define DW_FCF_SYSMODAL FCF_SYSMODAL
342 #define DW_FCF_MENU 0 340 #define DW_FCF_MENU 0
343 #define DW_FCF_SIZEBORDER (1 << 3) /* NSResizableWindowMask */ 341 #define DW_FCF_SIZEBORDER (1 << 3) /* NSResizableWindowMask */
344 #define DW_FCF_MINBUTTON (1 << 2) /* NSMiniaturizableWindowMask */ 342 #define DW_FCF_MINBUTTON (1 << 2) /* NSMiniaturizableWindowMask */
345 #define DW_FCF_MAXBUTTON 0 343 #define DW_FCF_MAXBUTTON 0
346 #define DW_FCF_MINMAX (1 << 2) /* NSMiniaturizableWindowMask */ 344 #define DW_FCF_MINMAX (1 << 2) /* NSMiniaturizableWindowMask */
347 #define DW_FCF_VERTSCROLL 0
348 #define DW_FCF_HORZSCROLL 0
349 #define DW_FCF_DLGBORDER 0 345 #define DW_FCF_DLGBORDER 0
350 #define DW_FCF_BORDER 0 346 #define DW_FCF_BORDER 0
351 #define DW_FCF_TASKLIST 0 347 #define DW_FCF_TASKLIST 0
352 #define DW_FCF_NOMOVEWITHOWNER 0 348 #define DW_FCF_NOMOVEWITHOWNER 0
353 #define DW_FCF_SYSMODAL 0 349 #define DW_FCF_SYSMODAL 0
523 #define DW_FCF_MENU 0 519 #define DW_FCF_MENU 0
524 #define DW_FCF_SIZEBORDER WS_THICKFRAME 520 #define DW_FCF_SIZEBORDER WS_THICKFRAME
525 #define DW_FCF_MINBUTTON WS_MINIMIZEBOX 521 #define DW_FCF_MINBUTTON WS_MINIMIZEBOX
526 #define DW_FCF_MAXBUTTON WS_MAXIMIZEBOX 522 #define DW_FCF_MAXBUTTON WS_MAXIMIZEBOX
527 #define DW_FCF_MINMAX (WS_MINIMIZEBOX|WS_MAXIMIZEBOX) 523 #define DW_FCF_MINMAX (WS_MINIMIZEBOX|WS_MAXIMIZEBOX)
528 #define DW_FCF_VERTSCROLL WS_VSCROLL
529 #define DW_FCF_HORZSCROLL WS_HSCROLL
530 #define DW_FCF_DLGBORDER WS_DLGFRAME 524 #define DW_FCF_DLGBORDER WS_DLGFRAME
531 #define DW_FCF_BORDER WS_BORDER 525 #define DW_FCF_BORDER WS_BORDER
532 #define DW_FCF_TASKLIST WS_VSCROLL 526 #define DW_FCF_TASKLIST (1 << 1)
533 #define DW_FCF_NOMOVEWITHOWNER 0 527 #define DW_FCF_NOMOVEWITHOWNER 0
534 #define DW_FCF_SYSMODAL 0 528 #define DW_FCF_SYSMODAL 0
535 #define DW_FCF_HIDEBUTTON WS_MINIMIZEBOX 529 #define DW_FCF_HIDEBUTTON WS_MINIMIZEBOX
536 #define DW_FCF_HIDEMAX (WS_MINIMIZEBOX|WS_MAXIMIZEBOX) 530 #define DW_FCF_HIDEMAX (WS_MINIMIZEBOX|WS_MAXIMIZEBOX)
537 #define DW_FCF_AUTOICON 0 531 #define DW_FCF_AUTOICON 0
538 #define DW_FCF_MAXIMIZE WS_MAXIMIZE 532 #define DW_FCF_MAXIMIZE WS_MAXIMIZE
539 #define DW_FCF_MINIMIZE WS_MINIMIZE 533 #define DW_FCF_MINIMIZE WS_MINIMIZE
534 #define DW_FCF_COMPOSITED 1
540 535
541 #define DW_CFA_BITMAPORICON 1 536 #define DW_CFA_BITMAPORICON 1
542 #define DW_CFA_STRING (1 << 1) 537 #define DW_CFA_STRING (1 << 1)
543 #define DW_CFA_ULONG (1 << 2) 538 #define DW_CFA_ULONG (1 << 2)
544 #define DW_CFA_TIME (1 << 3) 539 #define DW_CFA_TIME (1 << 3)
804 #define DW_FCF_MENU Ph_WM_RENDER_MENU 799 #define DW_FCF_MENU Ph_WM_RENDER_MENU
805 #define DW_FCF_SIZEBORDER Ph_WM_RENDER_RESIZE 800 #define DW_FCF_SIZEBORDER Ph_WM_RENDER_RESIZE
806 #define DW_FCF_MINBUTTON Ph_WM_RENDER_MIN 801 #define DW_FCF_MINBUTTON Ph_WM_RENDER_MIN
807 #define DW_FCF_MAXBUTTON Ph_WM_RENDER_MAX 802 #define DW_FCF_MAXBUTTON Ph_WM_RENDER_MAX
808 #define DW_FCF_MINMAX (Ph_WM_RENDER_MIN|Ph_WM_RENDER_MAX) 803 #define DW_FCF_MINMAX (Ph_WM_RENDER_MIN|Ph_WM_RENDER_MAX)
809 #define DW_FCF_VERTSCROLL 0
810 #define DW_FCF_HORZSCROLL 0
811 #define DW_FCF_DLGBORDER 0 804 #define DW_FCF_DLGBORDER 0
812 #define DW_FCF_BORDER Ph_WM_RENDER_BORDER 805 #define DW_FCF_BORDER Ph_WM_RENDER_BORDER
813 #define DW_FCF_TASKLIST 0 806 #define DW_FCF_TASKLIST 0
814 #define DW_FCF_NOMOVEWITHOWNER 0 807 #define DW_FCF_NOMOVEWITHOWNER 0
815 #define DW_FCF_SYSMODAL 0 808 #define DW_FCF_SYSMODAL 0
987 #define DW_FCF_MENU (1 << 2) 980 #define DW_FCF_MENU (1 << 2)
988 #define DW_FCF_SIZEBORDER (1 << 3) 981 #define DW_FCF_SIZEBORDER (1 << 3)
989 #define DW_FCF_MINBUTTON (1 << 4) 982 #define DW_FCF_MINBUTTON (1 << 4)
990 #define DW_FCF_MAXBUTTON (1 << 5) 983 #define DW_FCF_MAXBUTTON (1 << 5)
991 #define DW_FCF_MINMAX (1 << 6) 984 #define DW_FCF_MINMAX (1 << 6)
992 #define DW_FCF_VERTSCROLL (1 << 7)
993 #define DW_FCF_HORZSCROLL (1 << 8)
994 #define DW_FCF_DLGBORDER (1 << 9) 985 #define DW_FCF_DLGBORDER (1 << 9)
995 #define DW_FCF_BORDER (1 << 10) 986 #define DW_FCF_BORDER (1 << 10)
996 #define DW_FCF_TASKLIST (1 << 12) 987 #define DW_FCF_TASKLIST (1 << 12)
997 #define DW_FCF_NOMOVEWITHOWNER (1 << 14) 988 #define DW_FCF_NOMOVEWITHOWNER (1 << 14)
998 #define DW_FCF_SYSMODAL (1 << 15) 989 #define DW_FCF_SYSMODAL (1 << 15)
1346 /* Obsolete, should disappear sometime */ 1337 /* Obsolete, should disappear sometime */
1347 #define BOXHORZ DW_HORZ 1338 #define BOXHORZ DW_HORZ
1348 #define BOXVERT DW_VERT 1339 #define BOXVERT DW_VERT
1349 #define DW_FCF_SHELLPOSITION 0 1340 #define DW_FCF_SHELLPOSITION 0
1350 #define DW_FCF_NOBYTEALIGN 0 1341 #define DW_FCF_NOBYTEALIGN 0
1342 #define DW_FCF_VERTSCROLL 0
1343 #define DW_FCF_HORZSCROLL 0
1351 1344
1352 /* Scrolling constants */ 1345 /* Scrolling constants */
1353 #define DW_SCROLL_UP 0 1346 #define DW_SCROLL_UP 0
1354 #define DW_SCROLL_DOWN 1 1347 #define DW_SCROLL_DOWN 1
1355 #define DW_SCROLL_TOP 2 1348 #define DW_SCROLL_TOP 2
1421 #else 1414 #else
1422 #define DW_INT_TO_POINTER(a) ((void *)a) 1415 #define DW_INT_TO_POINTER(a) ((void *)a)
1423 #define DW_POINTER_TO_INT(a) ((int)a) 1416 #define DW_POINTER_TO_INT(a) ((int)a)
1424 #define DW_UINT_TO_POINTER(a) ((void *)a) 1417 #define DW_UINT_TO_POINTER(a) ((void *)a)
1425 #define DW_POINTER_TO_UINT(a) ((unsigned int)a) 1418 #define DW_POINTER_TO_UINT(a) ((unsigned int)a)
1419 #endif
1420
1421 #ifndef DW_FCF_COMPOSITED
1422 #define DW_FCF_COMPOSITED 0
1426 #endif 1423 #endif
1427 1424
1428 #ifndef API 1425 #ifndef API
1429 #define API 1426 #define API
1430 #endif 1427 #endif