May the force be with you.
CButton* button = (CButton*)GetDlgItem(IDC_BUTTON1); button->SetIcon(AfxGetApp()->LoadIcon(IDR_ICON1));