Re: How to get selected files Filename and full path? by andré
andré
Wed Jun 01 17:59:23 CDT 2005
> Hi Scott,
>
> hovers over a file in "any" explorer window. As i told before,
> i must intercept this hover and get the Filename and the Files
> full path, res. like virusscanners do.
>
>
> Best Regards
>
> Kerem Gümrükcü
the "hover" is a timed event handled by the process that
displays the file icons. Sometimes it may pop a tooltip.
Usualy you're dealing with a control of type ListView .
And if you want to intercept info during the hover,
it means you need to subclass the right window for a WM_NOTIFY.
basicaly you'd need to figure out if the cursor is over a
listview or somesuch. Perhaps after you intercept the
WM_NOTIFY you can study the diffrent possibilities
for WPARAM and LPARAM and see if there's a way
to reverse a file path or a tooltip text that contains a file path.
there are fonctionalities to detect a file being opened but i've
never heard of a API that reverses a listview item to a filepath.
good luck.