windows_programming_notes.nbk: Home | Index | Next Page: LPNMLVDISPINFO | Previous Page: LockResource


 LOGBRUSH

The LOGBRUSH structure defines the style, color, and pattern of a physical brush. It is used by the CreateBrushIndirect and ExtCreatePen functions.

    typedef struct tagLOGBRUSH { 
      UINT     lbStyle; 
      COLORREF lbColor; 
      LONG     lbHatch; 
    } LOGBRUSH, *PLOGBRUSH; 

Members

Remarks

Although lbColor controls the foreground color of a hatch brush, the SetBkMode and SetBkColor functions control the background color.

Windows 95: Creating brushes from bitmaps or DIBs larger than 8 by 8 pixels is not supported. If a larger bitmap is specified, only a portion of the bitmap is used.

Windows NT/2000 and Windows 98/Me: Brushes can be created from bitmaps or DIBs larger than 8 by 8 pixels.

Requirements


windows_programming_notes.nbk: Home | Index | Next Page: LPNMLVDISPINFO | Previous Page: LockResource


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time