CreateSolidBrush function (wingdi.h) - Win32 apps | Microsoft Learn
https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createsolidbrush
When you no longer need the HBRUSH object, call the DeleteObject function to delete it.A solid brush is a bitmap that the system uses to paint the interiors of filled shapes. After an application creates a brush by calling CreateSolidBrush, it can select that brush into an…To paint with a system color brush, an application should use GetSysColorBrush (nIndex) instead of CreateSolidBrush(GetSysColor(nIndex)), because GetSysColorBrush returns a cached brush instead of allocating a new one. Header: wingdi.h (include Windows.h) Minimum supported server: Windows 2000 Server [desktop apps only] Minimum supported client: Windows 2000 Professional [desktop apps only] Target Platform: Windows
When you no longer need the HBRUSH object, call the DeleteObject function to delete it.A solid brush is a bitmap that the system uses to paint the interiors of filled shapes.
After an application creates a brush by calling CreateSolidBrush, it can select that brush into an…To paint with a system color brush, an application should use GetSysColorBrush (nIndex) instead of CreateSolidBrush(GetSysColor(nIndex)), because GetSysColorBrush returns a cached brush instead of allocating a new one.
Header: wingdi.h (include Windows.h)
Minimum supported server: Windows 2000 Server [desktop apps only]
Minimum supported client: Windows 2000 Professional [desktop apps only]
Target Platform: Windows
DA: 58 PA: 97 MOZ Rank: 43