//return FALSE }
void CAddDlg::OnCancel2() { }
查询书籍:
BOOL CChaxunDlg::OnInitDialog() {
CDialog::OnInitDialog(); LONG lStyle;
lStyle = GetWindowLong(m_list.m_hWnd, GWL_STYLE);//获// TODO: Add your control notification handler code here m_bookname==""; m_congshuname==""; m_isbn==""; m_month==""; m_price==""; m_writer==""; m_year==""; UpdateData(FALSE);
//取当前窗口style
lStyle &= ~LVS_TYPEMASK; //清除显示方式位 lStyle |= LVS_REPORT; //设置style