procedure TForm1.Button1Click(Sender: TObject); begin case GetSystemDefaultLangID of $00000404:edit1.Text:='繁體中文'; $00000804:edit1.Text:='簡體中文'; end;end;
UINT uACP; uACP = GetACP(); switch(uACP) { case 936: iResult = CHINESE_GB; break; case 950: iResult = CHINESE_BIG5; break; default: iResult = ENGLISH; break; } Identifier Meaning 874 Thai 932 Japan 936 Chinese (PRC, Singapore) 949 Korean 950 Chinese (Taiwan Region; Hong Kong SAR, PRC) 1200 Unicode (BMP of ISO 10646) 1250 Windows 3.1 Eastern European 1251 Windows 3.1 Cyrillic 1252 Windows 3.1 Latin 1 (US, Western Europe) 1253 Windows 3.1 Greek 1254 Windows 3.1 Turkish 1255 Hebrew 1256 Arabic 1257 Baltic
begin
case GetSystemDefaultLangID of
$00000404:edit1.Text:='繁體中文';
$00000804:edit1.Text:='簡體中文';
end;end;
uACP = GetACP();
switch(uACP)
{
case 936:
iResult = CHINESE_GB;
break;
case 950:
iResult = CHINESE_BIG5;
break;
default:
iResult = ENGLISH;
break;
}
Identifier Meaning
874 Thai
932 Japan
936 Chinese (PRC, Singapore)
949 Korean
950 Chinese (Taiwan Region; Hong Kong SAR, PRC)
1200 Unicode (BMP of ISO 10646)
1250 Windows 3.1 Eastern European
1251 Windows 3.1 Cyrillic
1252 Windows 3.1 Latin 1 (US, Western Europe)
1253 Windows 3.1 Greek
1254 Windows 3.1 Turkish
1255 Hebrew
1256 Arabic
1257 Baltic