主题:怎样在按钮直显示位图
BOOL CSettingDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_btnST.SetBitmaps( IDI_ICON2, RGB(125, 10, 234));
//m_btnST.EnableWindow(false);
//m_btnST.SetColor(1, RGB(0, 0, 255));
m_cancel.SetColor(1, RGB(250, 0, 0));//, IDI_ICON2, RGB(0, 166, 12));
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
我使用了网上下载CButtonST类
程序能正常运行就是没有在按钮直显示位图
是因为m_btnST没有定义为CBitmapButton类型吗?
{
CDialog::OnInitDialog();
m_btnST.SetBitmaps( IDI_ICON2, RGB(125, 10, 234));
//m_btnST.EnableWindow(false);
//m_btnST.SetColor(1, RGB(0, 0, 255));
m_cancel.SetColor(1, RGB(250, 0, 0));//, IDI_ICON2, RGB(0, 166, 12));
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
我使用了网上下载CButtonST类
程序能正常运行就是没有在按钮直显示位图
是因为m_btnST没有定义为CBitmapButton类型吗?