?? subject_22061.htm
字號:
<p>
序號:22061 發(fā)表者:liujc 發(fā)表日期:2002-11-22 11:23:28
<br>主題:時間標示
<br>內(nèi)容:請教:在窗口中分時顯示文本,并每次在文本后面添加顯示出文本的時間,怎樣實現(xiàn)?
<br><a href="javascript:history.go(-1)">返回上頁</a><br><a href=http://www.copathway.com/cndevforum/>訪問論壇</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回復者:CDMA2000 回復日期:2002-11-22 11:28:33
<br>內(nèi)容:你用CTime::GetCurrentTime()取得當前時間,轉(zhuǎn)換為字符串附在你<BR>么顯示的文本就可以了<BR>取的當前時間<BR>int year=CTime::GetCurrentTime().GetYear();<BR>int month=CTime::GetCurrentTime().GetMonth();<BR>int date=CTime::GetCurrentTime().GetDate();<BR>CString str;<BR>str.Format("%4d-%02d-%02d",year,month,date);<BR>那么str就是當前時間的字符串<BR>
<br>
<a href="javascript:history.go(-1)">返回上頁</a><br><a href=http://www.copathway.com/cndevforum/>訪問論壇</a></p></blockquote>
<hr size=1>
<blockquote><p>
回復者:樹愛兵 回復日期:2002-11-22 11:34:15
<br>內(nèi)容:我加一句!分時顯示的話你還必須添加SetTimer()函數(shù)!設置間隔時間!
<br>
<a href="javascript:history.go(-1)">返回上頁</a><br><a href=http://www.copathway.com/cndevforum/>訪問論壇</a></p></blockquote>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -