[2/2]comctl32: partial implement new messages

André Hentschel nerv at dawncrow.de
Sat Dec 4 09:39:55 CST 2010


some apps simply just use PBM_SETSTATE with PBST_NORMAL, maybe to sync out some internal state.
However what we do is actually PBST_NORMAL
---
 dlls/comctl32/progress.c |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/dlls/comctl32/progress.c b/dlls/comctl32/progress.c
index 5f2f166..1144b62 100644
--- a/dlls/comctl32/progress.c
+++ b/dlls/comctl32/progress.c
@@ -29,11 +29,6 @@
  *
  * TODO:
  *
- * Messages:
- *    -- PBM_GETSTEP
- *    -- PBM_SETSTATE
- *    -- PBM_GETSTATE
- *
  * Styles:
  *    -- PBS_SMOOTHREVERSE
  *
@@ -662,6 +657,9 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
         return oldStep;
     }
 
+    case PBM_GETSTEP:
+        return infoPtr->Step;
+
     case PBM_STEPIT:
     {
 	INT oldVal;
@@ -707,6 +705,14 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
     case PBM_GETBKCOLOR:
 	return infoPtr->ColorBk;
 
+    case PBM_SETSTATE:
+        if(wParam != PBST_NORMAL)
+            FIXME("state %04lx not yet handled", wParam);
+        return PBST_NORMAL;
+
+    case PBM_GETSTATE:
+        return PBST_NORMAL;
+
     case PBM_SETMARQUEE:
 	if(wParam != 0)
         {
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list