1,221
社区成员
发帖
与我相关
我的任务
分享
CString strHeader[]={"学号","账号","密码"};
BOOL Caduseradd::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
for(int n=0;n<3;n++)
m_listu.InsertColumn(n,strHeader[n],LVCFMT_LEFT,80);
m_listf.InsertColumn(n,strHeader[n],LVCFMT_LEFT,80);}
DWORD styles=LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES;//扩展LIST风格,选中整行,网格线
ListView_SetExtendedListViewStyleEx(m_listu.m_hWnd,styles,styles);
ListView_SetExtendedListViewStyleEx(m_listf.m_hWnd,styles,styles);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}