CODHatchLB Class

class CODHatchLB: public CListBox

CODHatchLB

Defined in: OdHatchLB.h

Class Members

 CODHatchLB()

Constructor

virtual  ~CODHatchLB()

Destructor

virtual void  DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)

Called when an item is to be drawn.

virtual void  MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)

Called when an item's measurements are needed.

int  GetSelHatch()

Gets the currently selected hatch style.

void  SelectHatch(int nHatch)

Sets the currently selected hatch style.

void  SetTransparent(BOOL bTransparent)

Gets hatch background transparency value.

void  GetTransparent(BOOL& bTransparent)

Sets hatch background transparency value.

void  SetFgColor(COLORREF clr)

Gets hatch foreground color.

void  GetFgColor(COLORREF& clr)

Sets hatch foreground color.

void  SetBkColor(COLORREF clr)

Gets hatch background color.

void  GetBkColor(COLORREF& clr)

Sets hatch background color.

void  Init()

Initializes the listbox with hatch values.

BOOL m_bTransparent

Hatch background transparency flag.

COLORREF m_clrFG

Hatch foreground color.

COLORREF m_clrBG

Hatch background color.

LONG m_cyChar

Height of char in the current listbox font.