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());