Click here to Skip to main content
15,881,600 members
Articles / Desktop Programming / MFC
Article

Elliptic Buttons

Rate me:
Please Sign up or sign in to vote.
4.27/5 (9 votes)
8 Feb 2000 129.7K   5.5K   61   4
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

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    Written By
    United States United States
    This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

    Comments and Discussions

     
    GeneralBackground Rectangle Pin
    FlexMaster19-Apr-02 10:03
    FlexMaster19-Apr-02 10:03 
    GeneralIssues while using it in combination with the CRoundButton class Pin
    Bernd Giesen12-Jun-00 21:52
    Bernd Giesen12-Jun-00 21:52 
    GeneralNice One! Pin
    mikkidee15-Feb-00 8:39
    mikkidee15-Feb-00 8:39 
    Cool Man,
    Goes Perfect with my Eliptical "Logon" Icon.
    Thanks
    Mik
    Generalgood Pin
    4-Mar-02 0:24
    suss4-Mar-02 0:24 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.