]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Added version test
[wxWidgets.git] / src / msw / listctrl.cpp
index d0e958ffc37f0fbc57b8a6d1c2d88f7ae6dbc0f3..693df7dc4f98ae2466eda4781211d142babe35a2 100644 (file)
@@ -353,9 +353,7 @@ bool wxListCtrl::Create(wxWindow *parent,
 
     // explicitly say that we want to use Unicode because otherwise we get ANSI
     // versions of _some_ messages (notably LVN_GETDISPINFOA) in MSLU build
-#if wxUSE_UNICODE
-    ::SendMessage(GetHwnd(), LVM_SETUNICODEFORMAT, TRUE, 0);
-#endif
+    wxSetCCUnicodeFormat(GetHwnd());
 
     // for comctl32.dll v 4.70+ we want to have this attribute because it's
     // prettier (and also because wxGTK does it like this)