MFC 动态修改对话框标题

在对应对话框的初始化函数OnInitDialog()中添加以下代码:

CString title;

title.Format("%d",Id);//在标题栏动态显示Id的值

this->SetWindowText(title);

posted @ 2016-01-17 12:37  Ficow  阅读(1759)  评论(0编辑  收藏  举报