[2/4] comctl32/progress: Implement PBM_GETBARCOLOR, add some todo entries
Nikolay Sivov
bunglehead at gmail.com
Mon Jun 29 04:12:36 CDT 2009
Changelog:
- Implement PBM_GETBARCOLOR, add some todo entries
>From c87b55563758ff30d0b93c793d1ff38211701bc3 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Sun, 28 Jun 2009 02:46:35 +0400
Subject: Implement PBM_GETBARCOLOR, add some todo entries
---
dlls/comctl32/progress.c | 14 ++++++++++++++
include/commctrl.h | 1 +
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/progress.c b/dlls/comctl32/progress.c
index 776345f..a2c852e 100644
--- a/dlls/comctl32/progress.c
+++ b/dlls/comctl32/progress.c
@@ -27,6 +27,17 @@
* the specification mentioned above.
* If you discover missing features, or bugs, please note them below.
*
+ * TODO:
+ *
+ * Messages:
+ * -- PBM_GETSTEP
+ * -- PBM_GETBKCOLOR
+ * -- PBM_SETSTATE
+ * -- PBM_GETSTATE
+ *
+ * Styles:
+ * -- PBS_SMOOTHREVERSE
+ *
*/
#include <stdarg.h>
@@ -703,6 +714,9 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
InvalidateRect(hwnd, NULL, TRUE);
return 0;
+ case PBM_GETBARCOLOR:
+ return infoPtr->ColorBar;
+
case PBM_SETBKCOLOR:
infoPtr->ColorBk = (COLORREF)lParam;
InvalidateRect(hwnd, NULL, TRUE);
diff --git a/include/commctrl.h b/include/commctrl.h
index 6eb5f32..98e4010 100644
--- a/include/commctrl.h
+++ b/include/commctrl.h
@@ -484,6 +484,7 @@ static const WCHAR PROGRESS_CLASSW[] = { 'm','s','c','t','l','s','_',
#define PBM_GETPOS (WM_USER+8)
#define PBM_SETBARCOLOR (WM_USER+9)
#define PBM_SETMARQUEE (WM_USER+10)
+#define PBM_GETBARCOLOR (WM_USER+15)
#define PBM_SETBKCOLOR CCM_SETBKCOLOR
#define PBS_SMOOTH 0x01
--
1.5.6.5
More information about the wine-patches
mailing list