if (PathFileExists(str_path)) { m_Btn1.ShowWindow(SW_SHOW); m_Btn1.ModifyStyle(0, BS_BITMAP); } else { m_Btn1.ModifyStyle(0, BS_OWNERDRAW); m_Btn1.Set_Art(m_pArt, 0); m_Btn1.ShowWindow(SW_SHOW); }
m_Btn1.ModifyStyle(0, BS_BITMAP); UINT style = m_Btn1.GetButtonStyle(); style &= ~BS_OWNERDRAW; // mask with all bits except owner draw m_Btn1.SetButtonStyle(style);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)