]> git.saurik.com Git - wxWidgets.git/commitdiff
don't return HTCLIENT for static bitmaps, this breaks mouse (leave) event generation
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Jan 2005 02:29:42 +0000 (02:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Jan 2005 02:29:42 +0000 (02:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/statbmp.h
src/msw/statbmp.cpp

index 31462f585de38e2290d7b158b04196502837fa0b..692ad05f6f195e9a97d6273c8cf9afa6f1df8eb4 100644 (file)
@@ -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;
index fd6c408d2ef479ead54bb24c7ab861184606b89e..e4b2399c4a27e21aeb9c6b0cb7025d4139f190be 100644 (file)
@@ -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