📄 index057.htm
字号:
<html>
<style type="text/css"><!--
.p9 { font-family: "宋体"; font-size: 9pt}a {text-transform: none; text-decoration: none;}
a:hover {text-decoration: underline; color: #FF0000;}
--></style>
<body background="../di2001.jpg">
<h3 align="center"><font COLOR="#AOAO99"></font></h3>
<table width="100%" border="1" cellspacing="1">
<tr><td><p align="center"><font color="#FF0000">如何快速地格式化一个CString对象</font></td></tr>
<tr><td><p>
</Br>
调用CString:: Format,该函数和printf函数具有相同的参数,下例说明了如何使用Format函数:<Br>
</Br>
//Get size of window.<Br>
CRect rcWindow<Br>
GetWindowRect (rcWindow)<Br>
//Format message string.<Br>
CString strMessage<Br>
strMessage.Format (_T ("Window Size (%d, %d)"),<Br>
</Br>
rcWindow.Width (), rcWindow.Height ())<Br>
</Br>
//Display the message.<Br>
MessageBox (strmessage)<Br>
</Br>
</p></td></tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -