首先设置button为位图格式,将BMP图片加载到项目下,
 
HBITMAP hBitmap;

HBITMAP m_hBitmap;
 
CButton* PButton;
 
PButton = (CButton *)GetDlgItem(按钮button->ID);

   m_hBitmap = ::LoadBitmap(::AfxGetInstanceHandle(),MAKEINTRESOURCE
(图片BMP->ID));

   PButton->SetBitmap(m_hBitmap);