10 progressBarHandle(progressBarHandle),
11 progressBarBackgroundColor(RGB(0, 255, 0)),
12 progressBarColor(RGB(0, 255, 0))
19 progressBarBackgroundColor = RGB(red, green, blue);
21 SetWindowTheme(progressBarHandle, L
"", L
"");
23 SendMessageW(progressBarHandle, PBM_SETBKCOLOR, NULL,
static_cast<LPARAM
>(progressBarBackgroundColor));
25 InvalidateRect(progressBarHandle,
nullptr,
true);
30 progressBarColor = RGB(red, green, blue);
32 SetWindowTheme(progressBarHandle, L
"", L
"");
34 SendMessageW(progressBarHandle, PBM_SETBARCOLOR, NULL,
static_cast<LPARAM
>(progressBarColor));
36 InvalidateRect(progressBarHandle,
nullptr,
true);