在对话框的OnInitDialog()中添加 HICON m_hIcon; //修改对话框的图标 m_hIcon=AfxGetApp()->LoadIcon(IDI_ICON3); SetIcon(m_hIcon,TRUE);