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

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -