]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stattext.cpp
added missing header for not PCH case
[wxWidgets.git] / src / msw / stattext.cpp
index 1c0810694c1ed5be5834f28b96fcdd23aa61e728..a7f9c58876fb82429d0ac1ab19bf1e1cb93df4ee 100644 (file)
@@ -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