From 20b7206cb26940ec89fe78439c4c8640b6de6261 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 19 Sep 2002 11:16:14 +0000 Subject: [PATCH] removed unused MSWWindowProc() (so that nobody is tempted to put it back) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/stattext.h | 1 - src/msw/stattext.cpp | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/include/wx/msw/stattext.h b/include/wx/msw/stattext.h index 29561640a9..20c49b73a4 100644 --- a/include/wx/msw/stattext.h +++ b/include/wx/msw/stattext.h @@ -48,7 +48,6 @@ protected: virtual void DoSetSize(int x, int y, int w, int h, int sizeFlags = wxSIZE_AUTO); virtual wxSize DoGetBestSize() const; - virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); DECLARE_DYNAMIC_CLASS(wxStaticText) }; diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 4b33ade2c9..1c0810694c 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -170,16 +170,4 @@ bool wxStaticText::SetFont(const wxFont& font) return ret; } -long wxStaticText::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) -{ - // Ensure that static items get messages. Some controls don't like this - // message to be intercepted (e.g. RichEdit), hence the tests. - // Messes up display with Windows XP, apparently, so have to - // do explicit hit-testing in wxWindowMSW. -#if 0 - if (nMsg == WM_NCHITTEST) - return (long)HTCLIENT; -#endif - return wxWindow::MSWWindowProc(nMsg, wParam, lParam); -} #endif // wxUSE_STATTEXT