// TODO: Add extra initialization here m_isbn="978-7-115-"; UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to
a control
// EXCEPTION: OCX Property Pages should
//return FALSE }
查询全部书籍:
BOOL CLookDlg::OnInitDialog() {
CDialog::OnInitDialog(); LONG lStyle;
lStyle = GetWindowLong(m_list.m_hWnd, GWL_STYLE);
//获取当前窗口style
lStyle &= ~LVS_TYPEMASK; //清除显示方式位 lStyle |= LVS_REPORT; //设置style
SetWindowLong(m_list.m_hWnd, GWL_STYLE, lStyle); //设置style
DWORD dwStyle = m_list.GetExtendedStyle();
dwStyle |= LVS_EX_FULLROWSELECT;//选中某行使整行高//亮(只适用与report风格的listctrl)
dwStyle |= LVS_EX_GRIDLINES;//网格线(只适用与