这段代码是用vb软件出示话提示信息,我想知道在mfc里是如何实现,如果我想用static text 实现吗

[复制链接]
查看11 | 回复1 | 2010-10-14 12:15:50 | 显示全部楼层 |阅读模式
startInfo.Caption = "Initilize Start"
startInfo.Refresh
'Initilaze Swith card and lifting table
testInfo.Caption = "Initilizing Swith card and lifting table"
testInfo.Refresh
Dio_Init
testInfo.Caption = "Initilize Swith card and lifting table Finished"
testInfo.Refresh
' testInfo.Caption = "InitalizeHand Valve"
' testInfo.Refresh
'Hand_Init_Two
' testInfo.Caption = "InitalizeHand Valve Finished"
' testInfo.Refresh

回复

使用道具 举报

千问 | 2010-10-14 12:15:50 | 显示全部楼层
mfc通常绑定控件到一个CString 变量中,比如 m_strCaptionm_strCaption = "Initilize Start"UpdateData(true);'Initilaze Swith card and lifting table m_strCaption = "Initilizing Swith card and lifting table"UpdateDate(true); 如果你要使用 static文本控件,就使用SetWindownText()函数设计。总之,你就不要去学MFC。还是用VB吧。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行