CStatic-Derived Flat Button Class | CodeGuru

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” […]

Written By
CodeGuru Staff
CodeGuru Staff
Feb 29, 2000
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

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

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.