Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Encapsulates a Windows graphics device interface (GDI) brush.
class CBrush : public CGdiObject
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CBrush object. |
Public Methods
Name |
Description |
---|---|
Initializes a brush with the style, color, and pattern specified in a LOGBRUSH structure. |
|
Initializes a brush with a pattern specified by a device-independent bitmap (DIB). |
|
Initializes a brush with the specified hatched pattern and color. |
|
Initializes a brush with a pattern specified by a bitmap. |
|
Initializes a brush with the specified solid color. |
|
Creates a brush that is the default system color. |
|
Returns a pointer to a CBrush object when given a handle to a Windows HBRUSH object. |
|
Gets a LOGBRUSH structure. |
Public Operators
Name |
Description |
---|---|
Returns the Windows handle attached to the CBrush object. |
Remarks
To use a CBrush object, construct a CBrush object and pass it to any CDC member function that requires a brush.
Brushes can be solid, hatched, or patterned.
For more information on CBrush, see Graphic Objects.
Inheritance Hierarchy
CBrush
Requirements
Header: afxwin.h