X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e3a888e72809aa28931d7cd7737b0ace9b2e482..220c6d434e3f4cf030a04c091b6fdd7436a92efd:/src/msw/stattext.cpp diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 1c0810694c..a7f9c58876 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -170,4 +170,13 @@ 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. + if (nMsg == WM_NCHITTEST) + return (long)HTCLIENT; + + return wxWindow::MSWWindowProc(nMsg, wParam, lParam); +} #endif // wxUSE_STATTEXT