读书人

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

发布时间: 2013-09-06 10:17:17 作者: rapoo

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

读书人网 >C++

热点推荐