LinMinquan's Blog

Experience technology to change life

A user draw button that supports PNG files with transparency, for Visual C++ 6.0 and VS2005

文章链接:http://www.codeproject.com/Articles/26887/A-user-draw-button-that-supports-PNG-files-with-tr

实话说,这个button类真是不太好用。

我倒腾了半天,也没有做出他那样的效果。

1.首先得添加gdi plus的环境

2.要添加进来的那几个文件中CMemDC会跟系统自带的冲突,重定义了,只得改类名,比如改为CMemDC1

3.得自己设置按钮的size

 


Share