首页 > 编程语言 > 详细

MFC 类库

时间:2014-11-15 15:29:29      阅读:181      评论:0      收藏:0      [点我收藏+]

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八进制

MFC 类库

原文:http://www.cnblogs.com/qianzhilan/p/4099241.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!