diff options
Diffstat (limited to 'views/widget/widget_win.cc')
-rw-r--r-- | views/widget/widget_win.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc index badb66f..657ece9 100644 --- a/views/widget/widget_win.cc +++ b/views/widget/widget_win.cc @@ -564,7 +564,7 @@ void WidgetWin::OnDestroy() { void WidgetWin::OnDisplayChange(UINT bits_per_pixel, CSize screen_size) { if (widget_delegate()) - widget_delegate()->DisplayChanged(); + widget_delegate()->OnDisplayChanged(); } LRESULT WidgetWin::OnDwmCompositionChanged(UINT msg, @@ -723,10 +723,14 @@ LRESULT WidgetWin::OnMouseWheel(UINT message, WPARAM w_param, LPARAM l_param) { } void WidgetWin::OnMove(const CPoint& point) { + if (widget_delegate()) + widget_delegate()->OnWidgetMove(); SetMsgHandled(FALSE); } void WidgetWin::OnMoving(UINT param, const LPRECT new_bounds) { + if (widget_delegate()) + widget_delegate()->OnWidgetMove(); } LRESULT WidgetWin::OnNCActivate(BOOL active) { @@ -851,7 +855,7 @@ LRESULT WidgetWin::OnSetText(const wchar_t* text) { void WidgetWin::OnSettingChange(UINT flags, const wchar_t* section) { if (flags == SPI_SETWORKAREA && widget_delegate()) - widget_delegate()->WorkAreaChanged(); + widget_delegate()->OnWorkAreaChanged(); SetMsgHandled(FALSE); } |