c++MFC 列表控件

LV_COLUMN lvc; char *display[7]={"检查号","姓名","日期","性别","年龄","左右","方式","诊断病历"}; lvc.mask=LVCF_FMT|LVCF_TEXT|LVCF_SUBITEM|LVCF_WIDTH; lvc.fmt=LVCFMT_LEFT; lvc.cx=80; for(int i=0;i<7;i++) { lvc.iSubItem=i; lvc.pszText=display[i]; m_List.InsertColumn(i,&lvc); } m_List.SetExtendedStyle(m_List.GetExtendedStyle()|LVS_EX_FULLROWSELECT);为什么执行不了呢 列表控件: CListBox m_List;为什么提示:error C2078: too many initializers✀InsertColumn✀ : is not a member of ✀CListBox✀ see declaration of ✀CListBox✀✀SetExtendedStyle✀ : is not a member of ✀CListBox✀see declaration of ✀CListBox✀✀GetExtendedStyle✀ : is not a member of ✀CListBox✀see declaration of ✀CListBox✀
2026年09月25日 09:15
有0个网友回答