1.CWnd
1.1.UpdateData()
作用:
UpdateData() and Updatedata(TRUE) are the same.
UpdateData(TRUE) is used to copy the contents of the controls into the associated variables.
UpdateData(FALSE) is used to put the values in the variables to the associated controls.
1.2CString
1.1Format 与printf()类似
void Format( LPCTSTR lpszFormat, ... ); void Format( UINT nFormatID, ... );
例:
CString str = "Some Data";
str.Format("%s%d", str, 123); //%s 字符串,%d有符号十进制,%u无符号十进制,%o八进制
原文:http://www.cnblogs.com/qianzhilan/p/4099241.html