// do we want to handle custom draw for
// individual sub items
virtual bool IsNotifySubItemDraw(int /*nItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
// do we want to be notified when the
// painting has finished
virtual bool IsNotifyItemPostPaint(int /*nItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
// do we want to do any drawing after
// the list control is finished
virtual bool IsItemPostDraw()
// if we are doing the drawing afterwards ourselves
// override and put the code in here
// the return value is not used here
virtual bool OnItemPostDraw(CDC* /*pDC*/,
int /*nItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
//
// Callbacks for each sub item
//
// return a pointer to the font to use for this sub item.
// return NULL to use default
virtual CFont* FontForSubItem(int /*nItem*/,
int /*nSubItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
// return the text color to use for this sub item
// return CLR_DEFAULT to use default
virtual COLORREF TextColorForSubItem(int /*nItem*/,
int /*nSubItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
// return the background color to use for this sub item
// return CLR_DEFAULT to use default
virtual COLORREF BkColorForSubItem(int /*nItem*/,
int /*nSubItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
// do we want to do the drawing for this sub item ourselves?
virtual bool IsSubItemDraw(int /*nItem*/,
int /*nSubItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
// if we are doing the drawing ourselves
// override and put the code in here
// and return TRUE if we did indeed do
// all the drawing ourselves
virtual bool OnSubItemDraw(CDC* /*pDC*/,
int /*nItem*/,
int /*nSubItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
// do we want to be notified when the
// painting has finished
virtual bool IsNotifySubItemPostPaint(int /*nItem*/,
int /*nSubItem*/,
UINT /*nState*/,
LPARAM /*lParam*/)
评论