Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何检索 wxlistctrl 的标签信息?我试过类似的东西:
wxListItem itemCol; m_listCtrl->GetColumn(0, itemCol); printf("%s\n", itemCol.GetText().c_str());
但它不起作用,我得到一个空字符串!
有人能帮我吗 ?
wxListItem column; column.SetText(_("Column 1")); m_List->InsertColumn(0, column); wxListItem result; result.SetMask(wxLIST_MASK_TEXT); m_List->GetColumn(0, result); wxMessageBox(result.GetText());