【转载】在程序中动态改变static text控件的caption值
方法1,给STATIC控件取个名字叫IDC_STATICTITLE
然后在ClassWizard中设定一个控件变量给它叫m_statictitle
然后用m_statictitle.SetWindowText("你要写的字串");updata(False);
方法2,给STATIC控件取个名字叫IDC_STATICTITLE
GetDlgItem(IDC_STATICTITLE)->SetWindowText(_T("你要写的字串"));updata(False);
方法3,给STATIC控件取个名字叫IDC_STATICTITLE
然后在ClassWizard中设定一个CString变量给它叫m_statictitle
然后用m_statictitle = "你要写的字串";updata(False);
方法4:
给STATIC控件取名IDC_STATIC1,SetDlgItemText(IDC_STATIC1,_T("你要写的字符串");
http://blog.csdn.net/vicolee/article/details/5550769