added wxSetCCUnicodeFormat() and use it in wxTreeCtrl/wxToolBar; also replaced SendMessage(LVM_SETUNICODEFORMAT) with a call to it in wxListCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,5 +43,17 @@
|
||||
// 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_
|
||||
|
||||
|
Reference in New Issue
Block a user