CBitmapButtonm_bmpBtn;m_bmpBtn.SubclassDlgItem(IDC_BUTTON1,this);//关联控件//CBitmapButton对象m_bmpBtn的LoadBitmaps函数加载程序内bmp资源。m_bmpBtn.LoadBitmaps(IDB_BITMAP1,IDB_BITMAP2,IDB_BITMAP3,IDB_BITMAP4);m_bmpBtn.SizeToContent();