Making a list of folders in a directory with wxWidgets

前端 未结 3 1173
情歌与酒
情歌与酒 2021-01-14 13:30

I\'m making an application with wxWidgets that has a listbox in it. I want to get the current working directory of the application, and in that listbox, list all the folders

3条回答
  •  难免孤独
    2021-01-14 14:25

    You could use wxDirTraverser - you implement a subclass and override some methods which will be called depending if the item is a file or directory.

    You could also use wxDir::GetAllFiles, which will return a wxArray (which might be more convient for you, displaying it in a list).

提交回复
热议问题