devxlogo

Hexadecimal Color Constants

Properly designed Windows programs should change their own colorsaccording to the system colors. One of the reasons why developerstend to forget that part of design is that it is not easy to findvalues for those colors. Microsoft forgot to mention them in themanuals and they cannot be found in help files either.

There are several ways to determine constants for the system colors.One is by the Object Browser. Unfortunately, it could be timeconsuming. From now on, you can use this list:

System Color Name Color

Menu Text &H80000007&

Scroll Bars &H80000000&

Window Background &H80000005&

Window Frame &H80000006&

Window Text &H80000008&

Active Border &H8000000A&

Active Title Bar &H80000002&

Active Title Bar Text &H80000009&

Application Workspace &H8000000C&

Button Face &H8000000F&

Button Highlight &H80000014&

Button Shadow &H80000010&

Button Text &H80000012&

Desktop &H80000001&

Disabled Text &H80000011&

Highlight &H8000000D&

Highlighted Text &H8000000E&

Inactive Border &H8000000B&

Inactive Title Bar &H80000003&

Inactive Title Bar Text &H80000013&

Menu Bar &H80000004&

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  Five Early Architecture Decisions That Quietly Get Expensive

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.