MFC 模态对话框显示图标
MFC调用模态对话框后,如果再隐藏之前的界面。此时任务栏图标胡消失。解决方式是:
增加虚函数:

BOOL CDlgUpload::OnInitDialog()
{
CDialogEx::OnInitDialog();
// TODO: 在此添加额外的初始化
SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE, WS_EX_APPWINDOW);
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}