👩💻 Join our community of thousands of amazing developers!
Suppose you have a GDI HBRUSH and you suspect that it is a solid color brush. How can you confirm this suspicion and, if true, get the underlying color? You can ask the GetObject function to peek inside the brush. COLORREF GetBrushColor(HBRUSH brush) { LOGBRUSH lbr; The post How can I extract the color from a solid color GDI brush? appeared first on The Old New Thing....