diff options
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/native_theme_win.cc | 15 | ||||
-rw-r--r-- | gfx/native_theme_win.h | 7 |
2 files changed, 22 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(); } diff --git a/gfx/native_theme_win.h b/gfx/native_theme_win.h index 687bb65..81d61c5 100644 --- a/gfx/native_theme_win.h +++ b/gfx/native_theme_win.h @@ -44,6 +44,7 @@ class NativeTheme { TRACKBAR, WINDOW, PROGRESS, + SPIN, LAST }; @@ -190,6 +191,12 @@ class NativeTheme { int classic_state, RECT* rect) const; + HRESULT PaintSpinButton(HDC hdc, + int part_id, + int state_id, + int classic_state, + RECT* rect) const; + HRESULT PaintStatusGripper(HDC hdc, int part_id, int state_id, |