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

CString title;

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

this->SetWindowText(title);

相关文章: