问题
Can you get the RGB value from HBRUSH
or from brush id? for example: I'm looking for GRAY_BRUSH
in RGB value.
回答1:
You want to use the GetObject function to return a LOGBRUSH structure that contains the brush color.
来源:https://stackoverflow.com/questions/3612024/hbrush-to-rgb-value