首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

CBit地图Button如何显示位图按钮

2013-09-06 
CBitmapButton怎么显示位图按钮代码如下当把button的styles选中Owner draw时显示为图片不是按钮,选中其他

CBitmapButton怎么显示位图按钮
代码如下  当把button的styles选中Owner draw时显示为图片不是按钮,选中其他则不显示图片
求大神解答,怎么修改
CBitmapButton a;
BOOL CMy11Dlg::OnInitDialog()
{
CDialog::OnInitDialog();

a.LoadBitmaps(IDB_BITMAP,0,0);
a.SubclassDlgItem(IDC_BUTTON1,this);
a.SizeToContent(); CBitmapButton?位图?按钮
[解决办法]
先下载MSDN98,再参考MSDN98\SAMPLES\VC98\MFC\GENERAL\CTRLTEST\BBUTTON.CPP

热点排行