Search code examples
visual-c++mfcbordercbutton

Remove white border of CButton


How do I remove the white border on a CButton?

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.

How do I get rid of it?


Solution

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