The idea of this class comes from the
CRoundButton class from Chris Maunder. I was mainly missing elliptical forms and bitmaps in this class. The elliptical form is based on the bounds of the rectangle of the button. All properties can be set in the resource editor of the developer studio.
Using the code
This class can be used like any other owner drawn control - simply include the header file, and declare your button controls as
CEllipticButton instead of
Points of Interest
I combine all bitmap and text information to one bitmap. So, I must handle only one case. If you want a bitmap button without text, you must set an empty title.
The supported properties are
In the second version, I supported the Windows system colors for text and the disabled picture.