先在.h中定义 :CBitmapButton m_Calling;然后在:DoDataExchange(CDataExchange* pDX)中
DDX_Control(pDX, IDC_BNT_MAKECALL, m_Calling);关联到Button然后在
OnInitDialog() 中 m_Calling.LoadBitmaps (IDR_JPG1);
IDR_JPG1为一张导入的JPG图片。结果Button显示为空白,什么都不显示,请问怎么回事?
DDX_Control(pDX, IDC_BNT_MAKECALL, m_Calling);关联到Button然后在
OnInitDialog() 中 m_Calling.LoadBitmaps (IDR_JPG1);
IDR_JPG1为一张导入的JPG图片。结果Button显示为空白,什么都不显示,请问怎么回事?
File:f:\dd\vctools\vc7libs\ship\atlmfc\src\wincore.cpp (我电脑中无此目录及文件)
line:379for information on how your grogram can cause an assertion failure,see the Visual C++ documentation on asserts. 中止,重试,忽略 (三个Button)
pmyButton->LoadBitmaps(IDB_UP, IDB_DOWN, IDB_FOCUS, IDB_DISABLE); // Resize the button to be the size of the bitmaps.
pmyButton->SizeToContent();
m_Calling.SizeToContent (); 这一行又出现 Debug Assertion failed! 错误。Program F:\xx\xx.exe
File:f:\dd\vctools\vc7libs\ship\atlmfc\src\wincore.cpp (我电脑中无此目录及文件)
line:379for information on how your grogram can cause an assertion failure,see the Visual C++ documentation on asserts. 中止,重试,忽略 (三个Button)