摘要:
一.添加数据 m_listbox.AddString("fadsfasdfsdaf");二.计算数据条数 m_listbox.GetCount();三.清空列表框 m_listbox.ResetContent();四、修改背景颜色及字体颜色① 先创建一个基于对话框的工程,命名为test,然后在对话框上加入一个ListBox控件。② 在testDlg.h中加入一个成员变量:HBRUSH m_hbrush;③ 在OnInitDialog()中,加入m_hbrush=CreateSolidBrush(RGB(0,0,0);此处设置的RGB值可以改变ListBox的背景色。 为了观 阅读全文
posted @ 2011-08-08 20:43
海乐学习
阅读(7234)
评论(1)
推荐(0)

浙公网安备 33010602011771号