0

I wrote a C++ win32 utility to read the title of open windows of a particular process. The intention is to check if that particular process is active, and if active determine which file is open in it. One way I can determine the open file is by reading the window title (it shows the file path as the title). However, if the path is too long, the title gets shortened. I noticed that it still shows the full path as a tool tip if I move the mouse over to the title area. So, I was wondering if there is anyway I can get the tool tip string from the Window handle.

This post asks the same question, but I couldn't arrive at a solution from the suggestions there.

Community
  • 1
  • 1
unni
  • 183
  • 2
  • 9
  • I would imagine that it's only 'drawn' shortened and that calling `GetWindowText` on the app window would still give you the full title string. – user1793036 Apr 04 '14 at 01:04
  • Unfortunately, no. I am currently using GetWindowText() to get the title. It returns the shortened path. – unni Apr 04 '14 at 19:39

0 Answers0