Commit 25279d31 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/progress: Set default marquee animation timer to 30 msec.

parent 86b7fc38
...@@ -68,6 +68,7 @@ typedef struct ...@@ -68,6 +68,7 @@ typedef struct
#define LED_GAP 2 #define LED_GAP 2
#define MARQUEE_LEDS 5 #define MARQUEE_LEDS 5
#define ID_MARQUEE_TIMER 1 #define ID_MARQUEE_TIMER 1
#define DEFAULT_MARQUEE_PERIOD 30
/* Helper to obtain size of a progress bar chunk ("led"). */ /* Helper to obtain size of a progress bar chunk ("led"). */
static inline int get_led_size ( const PROGRESS_INFO *infoPtr, LONG style, static inline int get_led_size ( const PROGRESS_INFO *infoPtr, LONG style,
...@@ -724,8 +725,9 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message, ...@@ -724,8 +725,9 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
case PBM_SETMARQUEE: case PBM_SETMARQUEE:
if(wParam != 0) if(wParam != 0)
{ {
UINT period = lParam ? (UINT)lParam : DEFAULT_MARQUEE_PERIOD;
infoPtr->Marquee = TRUE; infoPtr->Marquee = TRUE;
SetTimer(infoPtr->Self, ID_MARQUEE_TIMER, (UINT)lParam, NULL); SetTimer(infoPtr->Self, ID_MARQUEE_TIMER, period, NULL);
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment