一个功能完善的图书管理系统
BOOL CDlgBookAdjust2::OnInitDialog()
{
CDialog::OnInitDialog();
m_auxilist.ModifyStyle(LVS_EDITLABELS,0);//禁止编辑标题
m_auxilist.SetExtendedStyle(LVS_EX_FULLROWSELECT|LVS_EX_ONECLICKACTIVATE|LVS_EX_INFOTIP|LVS_EX_SUBITEMIMAGES|LVS_EX_GRIDLINES );
//向表格中添加列
m_list.InsertColumn(1,"条形码",LVCFMT_LEFT,100);
m_list.InsertColumn(2,"书籍名称",LVCFMT_LEFT,120);
m_list.InsertColumn(3,"作者",LVCFMT_LEFT,80);
m_list.InsertColumn(4,"出版社",LVCFMT_LEFT,100);
m_list.InsertColumn(5,"数量",LVCFMT_LEFT,80);
m_auxilist.InsertColumn(0,"条形码",LVCFMT_LEFT,100);
m_auxilist.InsertColumn(1,"书籍名称",LVCFMT_LEFT,80);
m_auxilist.InsertColumn(2,"作者",LVCFMT_LEFT,60);
m_auxilist.InsertColumn(3,"出版社",LVCFMT_LEFT,60);
m_auxilist.InsertColumn(4,"默认价格",LVCFMT_LEFT,60);
//添加空行
m_list.InsertItem(1,"");
m_auxilist.SetParent(&m_list);
LoadStorageInfo();
LoadCounterInfo();
m_operator.SetWindowText(user);
CancelOperate();//exeute cancel operate
return TRUE;
}
评论1
最新资源