mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Fixed: client_config compilation
This commit is contained in:
parent
51bd12ec4a
commit
ea5c5b8bad
2 changed files with 3 additions and 4 deletions
|
@ -72,8 +72,6 @@ extern CClientConfigApp theApp;
|
||||||
// Helper to set text in a window
|
// Helper to set text in a window
|
||||||
// fallback to ascii set if the OS doesn't support unicode (windows 95/98/me)
|
// fallback to ascii set if the OS doesn't support unicode (windows 95/98/me)
|
||||||
void setWindowText(HWND hwnd, LPCWSTR lpText);
|
void setWindowText(HWND hwnd, LPCWSTR lpText);
|
||||||
// Test if os support unicode. Shouldn't call function such as SendMessageW if not supported
|
|
||||||
bool supportUnicode();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "database.h"
|
#include "database.h"
|
||||||
|
|
||||||
#include <nel/misc/debug.h>
|
#include <nel/misc/debug.h>
|
||||||
|
#include <nel/misc/system_utils.h>
|
||||||
|
|
||||||
#define ICON_ZONE_WIDTH 128
|
#define ICON_ZONE_WIDTH 128
|
||||||
|
|
||||||
|
@ -299,7 +300,7 @@ void CClient_configDlg::changeLanguage (const char *language)
|
||||||
CMenu* pSysMenu = GetSystemMenu(FALSE);
|
CMenu* pSysMenu = GetSystemMenu(FALSE);
|
||||||
if (pSysMenu)
|
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()));
|
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
|
// Set the item text
|
||||||
uint page = Tree.GetItemData (item);
|
uint page = Tree.GetItemData (item);
|
||||||
ucstring name = NLMISC::CI18N::get (Pages[page].Name);
|
ucstring name = NLMISC::CI18N::get (Pages[page].Name);
|
||||||
if (supportUnicode())
|
if (CSystemUtils::supportUnicode())
|
||||||
{
|
{
|
||||||
TVITEMEXW itemDesc;
|
TVITEMEXW itemDesc;
|
||||||
memset (&itemDesc, 0, sizeof(TVITEMEXW));
|
memset (&itemDesc, 0, sizeof(TVITEMEXW));
|
||||||
|
|
Loading…
Reference in a new issue