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 -

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

ruby on rails - Apipie interferes with proper error codes -