explicitly return NFR_UNICODE from WM_NOTIFYFORMAT when using MSLU
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2547,6 +2547,19 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
|
|||||||
processed = HandleNotify((int)wParam, lParam, &rc.result);
|
processed = HandleNotify((int)wParam, lParam, &rc.result);
|
||||||
break;
|
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
|
// for these messages we must return true if process the message
|
||||||
#ifdef WM_DRAWITEM
|
#ifdef WM_DRAWITEM
|
||||||
case WM_DRAWITEM:
|
case WM_DRAWITEM:
|
||||||
|
Reference in New Issue
Block a user