#include "locale"......CStdioFile f;CString str;if(f.Open(m_filename,CFile::modeRead | CFile::typeText)){ CString s; setlocale(LC_CTYPE, "chs"); while (f.ReadString(s)) { str += s; } f.Close();}SetDlgItemText(IDC_BUTTON1,str);