The path list is a convenient way of storing a number of directories, and when presented with a filename without a directory, searching for an existing file in those directories. Storing the filename only in an application's files and using a locally-defined list of directories makes the application and its files more portable.
Use the FileNameFromPath global function to extract the filename from the path.
wxPathList::wxPathList
voidwxPathList
Constructor.
wxPathList::AddEnvList
voidAddEnvListchar *env_variable
Finds the value of the given environment variable, and adds all paths to the path list. Useful for finding files in the PATH variable, for example.
wxPathList::AddPath
voidAddPathchar *path
Adds the given directory to the path list.
wxPathList::FindValidPath
char *FindValidPathchar *file
Searches for a full path for an existing file by appending file to successive members of the path list. If the file exists, a temporary pointer to the full path is returned.
wxPathList::Member
BoolMemberchar *file
TRUE if the path is in the path list (ignoring case).