正文

Custom Draw ListView Controls(6)2009-01-20 11:53:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/yuqiexing/40623.html

分享到:

// do we want to handle custom draw for

 // individual sub items

 virtual bool IsNotifySubItemDraw(int /*nItem*/,

                                  UINT /*nState*/,

                                  LPARAM /*lParam*/)

 { return false; }

 // do we want to be notified when the

 // painting has finished

 virtual bool IsNotifyItemPostPaint(int /*nItem*/,

                                    UINT /*nState*/,

                                    LPARAM /*lParam*/)

 { return false; }

 // do we want to do any drawing after

 // the list control is finished

 virtual bool IsItemPostDraw() { return false; }

 // 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*/)

 { return false; }

 //

 // 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 NULL; }

 // 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 CLR_DEFAULT; }

 // 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*/)

 { return CLR_DEFAULT; }

 // do we want to do the drawing for this sub item ourselves?

 virtual bool IsSubItemDraw(int /*nItem*/,

                            int /*nSubItem*/,

                            UINT /*nState*/,

                            LPARAM /*lParam*/)

 { return false; }

 // 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*/)

 { return false; }

 // do we want to be notified when the

 // painting has finished

 virtual bool IsNotifySubItemPostPaint(int /*nItem*/,

                                       int /*nSubItem*/,

                                       UINT /*nState*/,

                                       LPARAM /*lParam*/)

 { return false; }

 

阅读(1553) | 评论(1)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

loading...
您需要登录后才能评论,请 登录 或者 注册