CBrush::CreateSolidBrush
Initializes a brush with a specified solid color.
BOOL CreateSolidBrush(
COLORREF crColor
);
Параметры
- crColor
A COLORREF structure that specifies the color of the brush. The color specifies an RGB value and can be constructed with the RGB macro in WINDOWS.H.
Возвращаемое значение
Nonzero if successful; otherwise 0.
Заметки
The brush can subsequently be selected as the current brush for any device context.
When an application has finished using the brush created by CreateSolidBrush, it should select the brush out of the device context.
Пример
See the example for CBrush::CBrush.
Требования
Header: afxwin.h