CListCtrl 中使用 DrawItem MeasureItem 注意事项
2008-10-09 10:18
239 查看
//-- declaration
protected:
//{{AFX_MSG(CMyListCtrl)
afx_msg void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct); //-- Message
//}}AFX_MSG
virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct ); //reride
//-- Message macro
BEGIN_MESSAGE_MAP(C_ImageListCtrl, CListCtrl)
ON_WM_MEASUREITEM_REFLECT()
END_MESSAGE_MAP()
//-- Create attend the style LVS_OWNERDRAWFIXED . if had no added style LVS_OWNERDRAWFIXED that the drawitem function can't be called.
protected:
//{{AFX_MSG(CMyListCtrl)
afx_msg void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct); //-- Message
//}}AFX_MSG
virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct ); //reride
//-- Message macro
BEGIN_MESSAGE_MAP(C_ImageListCtrl, CListCtrl)
ON_WM_MEASUREITEM_REFLECT()
END_MESSAGE_MAP()
//-- Create attend the style LVS_OWNERDRAWFIXED . if had no added style LVS_OWNERDRAWFIXED that the drawitem function can't be called.
相关文章推荐
- 你不知道的JavaScript--Item14 使用prototype的几点注意事项
- 你不知道的JavaScript--Item14 使用prototype的几点注意事项
- 使用FileItem获取文件名时注意事项
- CListCtrl使用注意事项
- JavaScript学习--Item14 使用prototype的几点注意事项
- 使用listview的多种itemtype的时候的注意事项
- Android:.9图片的使用注意事项
- Android 欢迎页TimerTask的使用,及注意事项
- 关于 rcp 中Texteidtor 控件的使用注意事项
- Jedis-returnResource使用注意事项
- switch case default 语句的的使用以及注意事项
- PHP中$_FILES的使用方法及注意事项说明
- javascript动态添加课程-createElement的使用注意事项
- 在asp.net 2.0中使用CuteEditor 5.0的一个注意事项
- Map接口使用注意事项
- oracle database link的管理和使用注意事项
- 在T-SQL中使用临时表的注意事项
- automake的使用和注意事项(错误分析)
- HierarchyView使用的注意事项
- HttpClient使用及注意事项