A Windows-based color picker utility built with Microsoft Foundation Classes (MFC).
- System tray color picker for Windows
- Real-time color sampling from anywhere on screen
- Multiple color format support (RGB, HEX, HSV)
- Windows 10/11 (x86/x64)
- Visual Studio 2022 with the following components:
- MSVC v143 compiler toolset
- Windows 10/11 SDK
- MFC for latest v143 build tools (x86 & x64)
build.bat# Using MSBuild directly
MSBuild.exe ColorCop.sln /p:Configuration=Release /p:Platform=Win32
# Or open in Visual Studio 2022
start ColorCop.sln- Debug: Development build with debugging symbols
- Release: Optimized production build
- Build the project using the steps above
- Run
ColorCop.exefrom theRelease/directory - The application will appear in your system tray
ColorCop.cpp/h- Main application classColorCopDlg.cpp/h- Main dialog implementationSystemTray.cpp/h- System tray functionalitycolorspace.cpp/h- Color conversion utilitiesRes/- Application resources and icons
This project uses [cpplint](https://github.com/cpplint/cpplint) to enforce C++ style guidelines.
Install:
pip install cpplintRun linting:
cpplint --recursive .- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly on Windows 10/11
- Submit a pull request
See LICENSE.TXT for details.
Build Errors:
- Ensure MFC components are installed in Visual Studio 2022
- Verify Windows SDK is installed
- Check that platform toolset is set to v143
Runtime Issues:
- Install Visual C++ Redistributable for Visual Studio 2022