diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/window_impl.cc | 9 | ||||
-rw-r--r-- | base/window_impl.h | 3 |
2 files changed, 1 insertions, 11 deletions
diff --git a/base/window_impl.cc b/base/window_impl.cc index 7438bd9..c3b3ad4 100644 --- a/base/window_impl.cc +++ b/base/window_impl.cc @@ -155,14 +155,7 @@ LRESULT WindowImpl::OnWndProc(UINT message, WPARAM w_param, LPARAM l_param) { // Handle the message if it's in our message map; otherwise, let the system // handle it. if (!ProcessWindowMessage(hwnd_, message, w_param, l_param, result)) - result = DefWindowProc(hwnd_, message, w_param, l_param); - - if (message == WM_NCDESTROY) { - // Notify the subclass that this is the last message before the window - // is destroyed. - OnFinalMessage(hwnd_); - hwnd_ = NULL; - } + result = DefWindowProc(hwnd_, message, w_param, l_param); return result; } diff --git a/base/window_impl.h b/base/window_impl.h index ff8dd15..2941c3d9 100644 --- a/base/window_impl.h +++ b/base/window_impl.h @@ -50,9 +50,6 @@ class WindowImpl : public MessageMapInterface { // Retrieves the default window icon to use for windows if none is specified. virtual HICON GetDefaultWindowIcon() const; - // Override this to be notified of the last message. - virtual void OnFinalMessage(HWND window) {} - // Returns the HWND associated with this Window. HWND hwnd() const { return hwnd_; } |