HICON hicon = AfxGetApp()->LoadIcon(IDR_NEWICON); AfxGetMainWnd()->SetIcon(hicon, TRUE); //big icon AfxGetMainWnd()->SetIcon(hicon, FALSE); //small icon