码迷,mamicode.com
首页 > 编程语言 > 详细

MFC 类库

时间:2014-11-15 15:30:40      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:ar   for   strong   on   as   c   ui   字符串   print   

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 类库

标签:ar   for   strong   on   as   c   ui   字符串   print   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!