MFC在static text中动态显示系统时间
来源:互联网 发布:c语言新手编写小游戏 编辑:程序博客网 时间:2024/05/16 04:49
1.添加static text ,ID为IDC_ShowTime
2,在OnInitDialog()中
SetTimer(1,1000,NULL); //启动定时器
3.添加WM_TIMER消息处理函数,ontimer中添加如下代码:
CString strTime;
CTime tm;
tm=CTime::GetCurrentTime();
strTime=tm.Format("%Y-%m-%d %H:%M:%S");
SetDlgItemText(IDC_ShowTime,strTime); //显示系统时间
0 0
- MFC在static text中动态显示系统时间
- 在MFC中使用Static text控件显示消息
- 在MFC中使用Static text控件显示消息
- 关于mfc中动态显示系统时间
- MFC static显示时间
- MFC 实现 状态栏动态显示系统时间
- MFC在状态栏实时显示系统时间
- MFC 对话框中显示系统当前时间
- MFC中Edit控件显示系统时间
- MFC 对话框中显示系统当前时间
- 在Static Text控件中显示JPG图片
- MFC中static空间动态显示重叠问题
- MFC 显示系统时间
- QT 对话框中动态显示系统时间
- TextView中动态显示系统时间
- JSP中实现动态显示系统时间
- mfc中设置static text的颜色
- MFC中改变static text 字体大小
- ActiveAndroid 管理数据库
- 今夜, 我们无缘8强 (Life is a chain of experiences)
- C语言复习笔记<1>——关键字的用法
- Android TextView 文字高亮
- HDU - 4028 The time of a day(离散+DP)
- MFC在static text中动态显示系统时间
- 自定义标签(JspFragment类、invoke方法、开发带属性的标签)
- 前端开发利器 - Emmet (Zen Coding)
- Android学习笔记7——Intent和Intent Filters的介绍
- Jsp + servlet + mysql 使用
- XPath详解及Java示例代码
- java和python的结合------python编写的udpserver,java语言写的udpclient
- 内聚与偶和的理解
- android应用程序如何调用支付宝接口