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