Module: wine Branch: master Commit: 84f3c50474ba20c0e2a6b4f7e1894df67938344b URL: http://source.winehq.org/git/wine.git/?a=commit;h=84f3c50474ba20c0e2a6b4f7e1...
Author: Nikolay Sivov bunglehead@gmail.com Date: Sun Jun 28 02:46:35 2009 +0400
comctl32/progress: 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