Fixed: client_config compilation

This commit is contained in:
kervala 2010-06-16 21:47:22 +02:00
parent f398dac19e
commit ee62eee7ba
2 changed files with 3 additions and 4 deletions

View file

@ -72,8 +72,6 @@ extern CClientConfigApp theApp;
// Helper to set text in a window
// fallback to ascii set if the OS doesn't support unicode (windows 95/98/me)
void setWindowText(HWND hwnd, LPCWSTR lpText);
// Test if os support unicode. Shouldn't call function such as SendMessageW if not supported
bool supportUnicode();

View file

@ -24,6 +24,7 @@
#include "database.h"
#include <nel/misc/debug.h>
#include <nel/misc/system_utils.h>
#define ICON_ZONE_WIDTH 128
@ -299,7 +300,7 @@ void CClient_configDlg::changeLanguage (const char *language)
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu)
{
if (supportUnicode())
if (CSystemUtils::supportUnicode())
{
nlverify (::ModifyMenuW(*pSysMenu, IDM_ABOUTBOX, MF_BYCOMMAND|MF_STRING, IDM_ABOUTBOX, (WCHAR*)NLMISC::CI18N::get ("uiConfigMenuAbout").c_str()));
}
@ -321,7 +322,7 @@ void CClient_configDlg::translateTree ()
// Set the item text
uint page = Tree.GetItemData (item);
ucstring name = NLMISC::CI18N::get (Pages[page].Name);
if (supportUnicode())
if (CSystemUtils::supportUnicode())
{
TVITEMEXW itemDesc;
memset (&itemDesc, 0, sizeof(TVITEMEXW));