diff options
Diffstat (limited to 'chrome/browser/views/bookmark_table_view.cc')
-rw-r--r-- | chrome/browser/views/bookmark_table_view.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/views/bookmark_table_view.cc b/chrome/browser/views/bookmark_table_view.cc index c1b4023..edbedf0 100644 --- a/chrome/browser/views/bookmark_table_view.cc +++ b/chrome/browser/views/bookmark_table_view.cc @@ -4,6 +4,8 @@ #include "chrome/browser/views/bookmark_table_view.h" +#include <commctrl.h> + #include "app/drag_drop_types.h" #include "app/gfx/chrome_canvas.h" #include "app/gfx/chrome_font.h" @@ -430,11 +432,12 @@ void BookmarkTableView::PaintAltText() { gfx::Rect BookmarkTableView::GetAltTextBounds() { static const int kXOffset = 16; DCHECK(GetNativeControlHWND()); - CRect client_rect; - GetClientRect(GetNativeControlHWND(), client_rect); + RECT client_rect_rect; + GetClientRect(GetNativeControlHWND(), &client_rect_rect); + gfx::Rect client_rect(client_rect_rect); ChromeFont font = GetAltTextFont(); // Pad height by 2 for halo. - return gfx::Rect(kXOffset, content_offset(), client_rect.Width() - kXOffset, + return gfx::Rect(kXOffset, content_offset(), client_rect.width() - kXOffset, std::max(kImageSize, font.height() + 2)); } |