vc 使用位图制作按钮
按钮caption为login并选中了Ownerdraw属性,在项目中加了位图资源,ID分别为"LOGINU" "LOGIND"
在对话框类中加入public : CBitmapButton m_loginBtn
OnInitDialog()中加入m_loginBtn.AutoLoad(IDC_LOGIN, this);
点击编译按钮没报错,运行又没反应,窗口没出来
把 CBitmapButton m_loginBtn m_loginBtn.AutoLoad(IDC_LOGIN, this);
这两句注释掉窗口就出来了,可是没有位图按钮.
这个是什么原因呢?麻烦各位指点一下.