summaryrefslogtreecommitdiffstats
path: root/gfx/native_theme_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/native_theme_win.cc')
-rw-r--r--gfx/native_theme_win.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/gfx/native_theme_win.cc b/gfx/native_theme_win.cc
index cd64cb8..6b4a545 100644
--- a/gfx/native_theme_win.cc
+++ b/gfx/native_theme_win.cc
@@ -368,6 +368,18 @@ HRESULT NativeTheme::PaintScrollbarThumb(HDC hdc,
return S_OK;
}
+HRESULT NativeTheme::PaintSpinButton(HDC hdc,
+ int part_id,
+ int state_id,
+ int classic_state,
+ RECT* rect) const {
+ HANDLE handle = GetThemeHandle(SPIN);
+ if (handle && draw_theme_)
+ return draw_theme_(handle, hdc, part_id, state_id, rect, NULL);
+ DrawFrameControl(hdc, rect, DFC_SCROLL, classic_state);
+ return S_OK;
+}
+
HRESULT NativeTheme::PaintStatusGripper(HDC hdc,
int part_id,
int state_id,
@@ -847,6 +859,9 @@ HANDLE NativeTheme::GetThemeHandle(ThemeName theme_name) const
case PROGRESS:
handle = open_theme_(NULL, L"Progress");
break;
+ case SPIN:
+ handle = open_theme_(NULL, L"Spin");
+ break;
default:
NOTREACHED();
}