int GetLogBrush( LOGBRUSH* pLogBrush );
Return Value
If the function succeeds, and pLogBrush is a valid pointer, the return value is the number of bytes stored into the buffer.
If the function succeeds, and pLogBrush is NULL, the return value is the number of bytes required to hold the information the function would store into the buffer.
If the function fails, the return value is 0.
Parameters
pLogBrush
Points to a LOGBRUSH structure that contains information about the brush.
Remarks
Call this member function to retrieve the LOGBRUSH structure. The LOGBRUSH structure defines the style, color, and pattern of a brush.
For example, call GetLogBrush to match the particular color or pattern of a bitmap.
Example
LOGBRUSH logbrush;
brushExisting.GetLogBrush( &logbrush );
CBrush brushOther( logbrush.lbColor);
CBrush Overview | Class Members | Hierarchy Chart
See Also LOGBRUSH, ::GetObject