Can you get the RGB value from HBRUSH or from brush id? for example: I'm looking for GRAY_BRUSH in RGB value.
HBRUSH
GRAY_BRUSH
You want to use the GetObject function to return a LOGBRUSH structure that contains the brush color.