摘要: 其实我还是参考了网上的代码: 1 //自绘右键菜单 2 void CDemoStandardDlg::OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) 3 { 4 if (nIDCtl == 0) 5 { 6 lpMeasureItemStruct->itemWidth = 145; 7 lpMeasureItemStruct->itemHeight = 25; 8 } 9 10 CStandardDialog::On... 阅读全文
posted @ 2011-11-13 23:36 lingyun1120 阅读(2110) 评论(0) 推荐(0) 编辑
摘要: 实现功能: 每个一个ListItem都有两个图标,点击“X”图标可以删除该项。 鼠标经过某一个项时,该项更换背景色。代码:<仅作参考,有什么不好的地方,望大神指教!> 1 // OwnerDrawListBox.cpp : implementation file 2 // 3 4 #include "stdafx.h" 5 #include "OwnerDrawListBox.h" 6 #include "resource.h" 7 8 #ifdef _DEBUG 9 #define new DEBUG_NEW 10 #u 阅读全文
posted @ 2011-11-13 23:30 lingyun1120 阅读(4699) 评论(0) 推荐(0) 编辑