1

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?

GreatDane
  • 683
  • 1
  • 9
  • 31

1 Answers1

2

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

ScottMcP-MVP
  • 10,337
  • 2
  • 15
  • 15
  • Is it possible to use 'CBitmapButton' in a non-dialog window? Coz, 'm_bitmapButton.SubclassDlgItem(501,this);' makes my application to crash (as my button with id 501 is not from a dialog). – Hari Ram Feb 16 '16 at 12:11