]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/wrapcctl.h
make things simpler, no default variant
[wxWidgets.git] / include / wx / msw / wrapcctl.h
index fb26166ee09b0217dd0eb5445e50fb2242ed436a..188377baca51e68b11b98502bb58532e1f99377d 100644 (file)
 // define things which might be missing from our commctrl.h
 #include "wx/msw/missing.h"
 
+// Set Unicode format for a common control
+inline void wxSetCCUnicodeFormat(HWND hwnd)
+{
+    SendMessage(hwnd, CCM_SETUNICODEFORMAT,
+#if wxUSE_UNICODE
+                TRUE
+#else
+                FALSE
+#endif
+                , 0);
+}
+
 #endif // _WX_MSW_WRAPCCTL_H_