This member function initializes a brush with the pattern specified by a device-independent bitmap (DIB). The brush can subsequently be selected for any device context that supports raster operations.
BOOL CreateDIBPatternBrush ( HGLOBAL hPackedDIB, UINT nUsage );
BOOL CreateDIBPatternBrush( const void* lpPackedDIB, UINT nUsage );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
Windows CE 1.0 doesn't support the DIB_PAL_COLORS flag in the nUsage parameter.
CBrush Overview, CBrush Member Functions, Graphical Drawing Object Classes, CBrush::CreateBrushIndirect, CBrush::CreateSolidBrush, CGdiObject::CreateStockObject, CDC::SelectObject, CGdiObject::DeleteObject, CDC::GetBrushOrg, CDC::SetBrushOrg
This member function initializes a brush with a pattern specified by a bitmap. The brush can subsequently be selected for any device context that supports raster operations.
BOOL CreatePatternBrush( CBitmap* pBitmap );
Header file: | Afxwin.h |
Platforms: | |
Versions: | 3.0 and later |
Complete documentation: | Visual C++ documentation |
CBrush Overview, CBrush Member Functions, Graphical Drawing Object Classes, CBrush::CreateBrushIndirect, CBrush::CreateDIBPatternBrush, CGdiObject::DeleteObject