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.
Printable View
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.
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.
Please note that the actual color drawn may be inexact, depending on the color settings.Code:LOGBRUSH lb;
GetObject(hbrush,sizeof(LOGBRUSH),&lb);
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.