class CALXCellBorders
{
public:
COLORREF m_crLeftBrdColor; // Color
of the left cell border
COLORREF m_crTopBrdColor; //
Color of the top border
COLORREF m_crRightBrdColor; // Color of the
right border
COLORREF m_crBottomBrdColor; // Color of the
bottom border
BYTE m_nOrderDraw;
// The order drawn borders
// color of the right border should be equal color of the left border of the right cell
// color of the bottom border should be equal color of the top border of the bottom cell
// and on the contrary
DrawBorders(CDC *pDC, CRect rc);
DrawBorders(CDC *pDC, CRect rc,
COLORREF crLeftBrdColor,
COLORREF crTopBrdColor,
COLORREF crRightBrdColor,
COLORREF crBottomBrdColor,
BYTE nOrderDraw);
};
The supplementary class will be used for a define colour of cell item.
The function of draw borders are contains. files ALXCellMetrics.h,
ALXCellMetrics.cpp.
See also:
CALXCellMetrics |