65.9K
CodeProject is changing. Read more.
Home

Elliptic Buttons

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.27/5 (9 votes)

Feb 9, 2000

viewsIcon

130455

downloadIcon

5538

A class that turns rectangular buttons into elliptic buttons.

  • Download demo project - 24 Kb
  • Download source files - 5 Kb
  • Sample Image

    This class is based on Chris Maunder's Round Buttons. However, instead of forcing all buttons to be round, this class allows buttons to be elliptical, with the major and minor axes based on the bounds of the rectangle passed to the buttons' creation function (Either through CEllipticalButton::Create or via the DevStudio resource editor).

    This class can be used like any other owner drawn control - simply include the header file, and declare your button controls as CEllipticalButton instead of CButton