X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9d171bd008f9512f14693438af33c89ccf166a9..44d130a35e7973911686d664bcf275a538990d52:/src/msw/stattext.cpp diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index a7f9c58876..4b33ade2c9 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -172,11 +172,14 @@ bool wxStaticText::SetFont(const wxFont& font) 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. - if (nMsg == WM_NCHITTEST) - return (long)HTCLIENT; - - return wxWindow::MSWWindowProc(nMsg, wParam, 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