CButton* pBtn= (CButton*)GetDlgItem(IDC_BUTTON1); pBtn->ModifyStyle( 0, BS_ICON ); HICON hIcn= (HICON)LoadImage( AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 63,66, // use actual size LR_DEFAULTCOLOR ); pBtn->SetIcon( hIcn );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)