CStatic-Derived Flat Button Class

Description

CStaticButton is a class derived from MFC CStatic class. With this class your applications can have standard buttons or new and modern buttons with "flat" style!

CStaticButton features:

  • Standard CStatic properties
  • Only Bitmap Button - But, Adding Icon so esay
  • Not Depend on Format, 2 color - true color support
  • Standard or new "flat" button style
  • Change runtime from Enable-Disable Image
  • Change runtime from ToolTips and CRgn(Default-rect region)
  • Can be used via DDX_ calls
  • Can be dinamically created
  • Each button can have its own mouse pointer
  • Full source code included!
  • It's free!

Summary

I don't speak English very well. However, I think that the code is simple and easy enough to follow. Just don't forget to change the button image's Notify property

Downloads

Download demo project - 64 Kb
Download source - 3 Kb


Comments

  • It looks very useful to me

    Posted by Legacy on 08/28/2002 12:00am

    Originally posted by: imanoos

    Thank you for this item..

    But it has some memory leak.

    Reply
  • I cant see any new buttons here

    Posted by Legacy on 07/23/2002 12:00am

    Originally posted by: Plexor

    I cant see any new buttons here, the buttons active area is still the old rectangle one

    what's the new with these buttons, you mean their picture ?

    hahaha what a troll

    look how gratefully are the people for you
    hahahaha


    Reply
  • I really thankfull

    Posted by Legacy on 05/09/2002 12:00am

    Originally posted by: Shamsheer Jaleel

    Friend i am really thankfull to you

    Reply
  • Thanx... Nice guy! Kwon~

    Posted by Legacy on 04/15/2002 12:00am

    Originally posted by: 감사합니당.

    냉무~

    Reply
  • Good....Great~

    Posted by Legacy on 12/06/2001 12:00am

    Originally posted by: Roxana jung

    ..^_^
    thanks for your code

    Reply
  • no title -_-;

    Posted by Legacy on 03/20/2001 12:00am

    Originally posted by: hi blackCrow

    im devpia player(??)
    he he
    nice to meet you
    im very stupid
    it is your button sample
    i can't find this sample to depia zone -_-;;
    please put this sample
    sorry i cant english
    byebye

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • Live Event Date: October 23, 2014 @ 12:00 p.m. ET / 9:00 a.m. PT Despite the current "virtualize everything" mentality, there are advantages to utilizing physical hardware for certain tasks. This is especially true for backups. In many cases, it is clearly in an organization's best interest to make use of physical, purpose-built backup appliances rather than relying on virtual backup software (VBA - Virtual Backup Appliances). Join us for this eSeminar to learn why physical appliances are preferable to …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds