I'd like to be able to obtain the RGB values from an HBRUSH, a sort of resverse-CreateSolidBrush() function. I'm sure it must exist.
I'd like to be able to obtain the RGB values from an HBRUSH, a sort of resverse-CreateSolidBrush() function. I'm sure it must exist.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
Surely you know what the RGB components are when you created the brush, unless it was a system colour, and I showed you how to get that in the other thread.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Please note that the actual color drawn may be inexact, depending on the color settings.Code:LOGBRUSH lb; GetObject(hbrush,sizeof(LOGBRUSH),&lb);
Peter O. Programming tips
poccil, is this inexactness based on a palette issue? And if so, what recommendations could you make? Not that this is worth much time or effort, but I'd like to know what my options are.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials