HBRUSH value for RGB

Can you get the RGB value from HBRUSH or from the brush id? for example: I'm looking for GRAY_BRUSH in the RGB value.

+7
winapi gdi
source share
1 answer

You want to use the GetObject function to return a LOGBRUSH structure containing the color of the brush.

+5
source share

All Articles