From e3c55eb333d273693ed2aea23da909b33e9e5484 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 19 Jan 2005 02:29:42 +0000 Subject: [PATCH] don't return HTCLIENT for static bitmaps, this breaks mouse (leave) event generation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/statbmp.h | 3 --- src/msw/statbmp.cpp | 15 --------------- 2 files changed, 18 deletions(-) diff --git a/include/wx/msw/statbmp.h b/include/wx/msw/statbmp.h index 31462f585d..692ad05f6f 100644 --- a/include/wx/msw/statbmp.h +++ b/include/wx/msw/statbmp.h @@ -73,9 +73,6 @@ public: // implementation only from now on // ------------------------------- - // implement base class virtuals - virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); - protected: virtual wxBorder GetDefaultBorder() const; virtual wxSize DoGetBestSize() const; diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index fd6c408d2e..e4b2399c4a 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -262,19 +262,4 @@ void wxStaticBitmap::SetImageNoCopy( wxGDIImage* image) ::InvalidateRect(GetHwndOf(GetParent()), &rect, TRUE); } -// We need this or the control can never be moved e.g. in Dialog Editor. -WXLRESULT wxStaticBitmap::MSWWindowProc(WXUINT nMsg, - WXWPARAM wParam, - WXLPARAM lParam) -{ -#ifndef __WXWINCE__ - // Ensure that static items get messages. Some controls don't like this - // message to be intercepted (e.g. RichEdit), hence the tests. - if ( nMsg == WM_NCHITTEST ) - return (long)HTCLIENT; -#endif - - return wxWindow::MSWWindowProc(nMsg, wParam, lParam); -} - #endif // wxUSE_STATBMP -- 2.45.2