CImageButton - An advanced bitmap button control. Although MFC’s CBitmapButton class is perfect most cases, I found some of it’s features needed some improvement. Fortunately Microsoft released a much more advanced version of CBitmapButton as a part of its WTL classes. I decided to take this as a basis for this MFC class and add some minor improvements like: button text, autoload and transparency.

nBitmapID is resource ID of the bitmap with the button images.nImageCount is where you specify how much images the bitmap resource contains.nBorderLeft is the left border offset that may not be resized.nBorderTop is the top border offset that may not be resized.nBorderRight is the right border offset that may not be resized.nBorderBottom is the bottomleft border offset that may not be resized.