2个回答
展开全部
HBITMAP m_hBitmap;
m_hBitmap = ::LoadBitmap(::AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP1));
btCtrlExit.SetBitmap(m_hBitmap);
//btCtrlExit是与按钮关联的控件变量,用ClassWizard里的Member Variables添加: CButton btCtrlExit;
//IDB_BITMAP1为位图资源ID
m_hBitmap = ::LoadBitmap(::AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP1));
btCtrlExit.SetBitmap(m_hBitmap);
//btCtrlExit是与按钮关联的控件变量,用ClassWizard里的Member Variables添加: CButton btCtrlExit;
//IDB_BITMAP1为位图资源ID
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询