MFC获取当前机器的默认区域选项。

UINT   uAcp   =   GetACP();   //获取当前区域选项的文字编码。中国936
    
  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    
   
  switch()  
   
  default:   english;  

 

 

GetSystemDefaultLangID()   中文机器上是2052.不知道怎么知道是简体中文的,但是GetACP()函数好用。

你可能感兴趣的:(windows,mfc)