IDC_ABOUT设为OwnerDraw
CBitmapButton m_bmpAbout;
m_bmpAbout.LoadBitmaps(IDB_ABOUT1,IDB_ABOUT2);
VERIFY(m_bmpAbout.SubclassDlgItem(IDC_ABOUT,this));
m_bmpAbout.SizeToContent();
解决方案 »
- 如何实现安装后立即启动Desktop Band程序.
- 急!:将Dialog程序移至多文档程序中 DoDataExchange 如何做,如下
- 很简单的菜单更新问题
- 用spy++ 发现windows的edit有猫腻儿
- 继续写作业(现在就有分),问是不是一定要用链表才能实现插入这个功能?
- 请教:我在CMyView中的菜单消息响应函数中调用一个对话框,为什么有的能打开,有的对话框打不开?
- C++ builder&&VC++ 高手请进入!!
- http://www.csdn.net/Expert/topic/422/422383.shtm,给分
- byte数据类型转换成int型
- 透明对话框的问题.有人知道吗?
- 求位图转换源码:真彩图<->256色<->灰度图,推者有分
- 开发大联盟,VC人员开放大聚会
myButton.Create(NULL, WS_CHILD|WS_VISIBLE|BS_OWNERDRAW,
CRect(10,10,100,100), pParentWnd, 1); // Load the bitmaps for this button.
myButton.LoadBitmaps(IDB_UP, IDB_DOWN, IDB_FOCUS, IDB_DISABLE); For more details about CBitmapButton, please visit
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcemfc/htm/
cbitmapb.aspFor your second question, you do not need to use the exact same size for
your button and your bitmap. The button will change the size to the same of
the bitmap. For more information on using CBitmapButton to resize a Bitmap to fit a
Button, please visit
http://support.microsoft.com/support/kb/articles/Q134/4/21.asp