c++ - Path shortener with MFC -


I need to display the path in the context menu in my app and need to find a way to shorten them. For example, what Microsoft apps do in their "Recently used" list, if the original path is : the \ clientName \ projectName \ programName \ componentName \ SomeFileName.cpp convert me into something like this Need to c: \ ClientName \ ... \ SomeFileName.cpp .

So I'm curious that if C ++ / MFC or maybe a WinAPI?

Use path path to shorten the path components by changing it with ellipses.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -