删除CButton的白色边框 [英] Remove white border of CButton

查看:410
本文介绍了删除CButton的白色边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除CButton上的白色边框?

How do I remove the white border on a CButton?

我想并排放置两个按钮,每个按钮都有一个BMP图像,这样它们就可以创建单个图像而彼此之间没有白色间隙,但是当我将两个按钮重叠时,两个按钮都会得到白色边框.我尝试使用DrawBorder(FALSE, TRUE);,但是它不起作用.

I want to put two buttons, each having a BMP image, side by side so that they create a single image without having a white gap between, but when I overlap the two buttons I get a white border from either. I tried with DrawBorder(FALSE, TRUE); but it doesn't work.

我如何摆脱它?

推荐答案

使用CBitmapButton尝试一下.我记得,除非您在位图图像中创建一个边框,否则它没有任何边框.

Try it with CBitmapButton. If I recall, it does not have any border unless you create one as part of the bitmap images.

这篇关于删除CButton的白色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆