diff options
Diffstat (limited to 'views/controls/button/menu_button.cc')
-rw-r--r-- | views/controls/button/menu_button.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/views/controls/button/menu_button.cc b/views/controls/button/menu_button.cc index 6dbf4ae..993cd9b 100644 --- a/views/controls/button/menu_button.cc +++ b/views/controls/button/menu_button.cc @@ -110,7 +110,7 @@ int MenuButton::GetMaximumScreenXCoordinate() { } HWND hwnd = widget->GetNativeView(); - RECT t; + CRect t; ::GetWindowRect(hwnd, &t); gfx::Rect r(t); @@ -154,7 +154,8 @@ bool MenuButton::Activate() { GetRootView()->SetMouseHandler(NULL); menu_visible_ = true; - menu_delegate_->RunMenu(this, menu_position, GetWidget()->GetNativeView()); + menu_delegate_->RunMenu(this, menu_position.ToPOINT(), + GetWidget()->GetNativeView()); menu_visible_ = false; menu_closed_time_ = Time::Now(); |