]> git.saurik.com Git - wxWidgets.git/commitdiff
explicitly return NFR_UNICODE from WM_NOTIFYFORMAT when using MSLU
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Mar 2004 12:45:26 +0000 (12:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Mar 2004 12:45:26 +0000 (12:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 9a4db982419fbb4a887d8535ee54821949316811..d49586e8e3122bc9f048f5c56d7c713cec51a280 100644 (file)
@@ -2547,6 +2547,19 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
             processed = HandleNotify((int)wParam, lParam, &rc.result);
             break;
 
             processed = HandleNotify((int)wParam, lParam, &rc.result);
             break;
 
+        // we only need to reply to WM_NOTIFYFORMAT manually when using MSLU,
+        // otherwise DefWindowProc() does it perfectly fine for us, but MSLU
+        // apparently doesn't always behave properly and needs some help
+#if wxUSE_UNICODE_MSLU && defined(NF_QUERY)
+        case WM_NOTIFYFORMAT:
+            if ( lParam == NF_QUERY )
+            {
+                processed = true;
+                rc.result = NFR_UNICODE;
+            }
+            break;
+#endif // wxUSE_UNICODE_MSLU
+
             // for these messages we must return true if process the message
 #ifdef WM_DRAWITEM
         case WM_DRAWITEM:
             // for these messages we must return true if process the message
 #ifdef WM_DRAWITEM
         case WM_DRAWITEM: