|
Public Member Functions |
| BOOL | Create (HBITMAP hBmp) |
| | Creates a bitmap brush from an HBITMAP object.
|
| BOOL | Create (int nStyle, COLORREF rgb) |
| | Creates the specified style and color brush.
|
| BOOL | Create (COLORREF rgb) |
| | Creates a solid brush of the specified color.
|
|
void | Destroy () |
| | Releases the brush.
|
|
| CGrBrush () |
| | Default constructor.
|
| | CGrBrush (HBRUSH hBrush) |
| | Wraps an existing brush.
|
| | CGrBrush (int nStyle, COLORREF rgb) |
| | Creates the specified style and color brush.
|
| | CGrBrush (COLORREF rgb) |
| | Creates a solid brush of the specified color.
|
| | CGrBrush (HBITMAP hBmp) |
| | Creates a bitmap brush from an HBITMAP object.
|
|
virtual | ~CGrBrush () |
| | Destructor.
|
| | operator HBRUSH () |
| | Returns the HBRUSH.
|
| HBRUSH | GetSafeHbrush () |
| | Returns the HBRUSH.
|
|
BOOL | IsObject () |
| | Returns non-zero if there is a valid HBRUSH handle.
|
| void | Attach (HBRUSH hBrush) |
| | Attaches to an existing HBRUSH object.
|
| HBRUSH | Detach () |
| | Detaches from an HBRUSH without releasing it.
|
Simple wrapper class for the windows GDI HBRUSH object.