Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HBRUSH to RGB value

Tags:

winapi

gdi

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

like image 361
xor Avatar asked Aug 31 '10 18:08

xor


1 Answers

You want to use the GetObject function to return a LOGBRUSH structure that contains the brush color.

like image 146
GSerg Avatar answered Nov 14 '22 17:11

GSerg