Transparent MFC CSliderCtrl Class | CodeGuru

Transparent MFC CSliderCtrl Class

Environment: Visual C++ V6.0 This is a MFC transparent slider class, as it uses CSliderCtrl as its base class it can be used as a replacement class for any CSliderCtrl object. Tic marks are fully supported as can be seen in the screen shot above. To use, add this class to your project. Add your […]

Written By
CodeGuru Staff
CodeGuru Staff
Dec 19, 2001
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

Environment: Visual C++ V6.0

This is a MFC transparent slider class, as it uses CSliderCtrl as its base class
it can be used as a replacement class for any CSliderCtrl object. Tic marks are
fully supported as can be seen in the screen shot above. To use, add this class
to your project. Add your sliders to your project normally, then change the CSliderCtrl
type in your .h file to CMySliderControl and #include the MySliderControl.h file.
Once compiled your sliders will be transparent and if you have auto tics set then these
too will show.

For the code, see the downloadable source code and example project

Downloads

Download demo project – 41Kb

Download source – 4Kb

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.