Discussion:
HWND to IShellFolder
(too old to reply)
JoDeGr8
2009-09-01 04:38:17 UTC
Permalink
In my app i will install a keyboard hook. when the user presses a
special hotkey all the text files in the active folder will be
selected. Please tell me how to achieve it. I saw SelectItem in the
IShellFolder but that doesn't seems to work for me. Please advice.


Regards,
J
domi
2009-09-02 05:44:19 UTC
Permalink
Post by JoDeGr8
In my app i will install a keyboard hook. when the user presses a
special hotkey all the text files in the active folder will be
selected. Please tell me how to achieve it. I saw SelectItem in the
IShellFolder but that doesn't seems to work for me. Please advice.
Regards,
The official method (MS) and code (C++) has been given on Win32 group
(comp.os.ms-windows.programmer.win32)
Tim Roberts
2009-09-02 05:56:16 UTC
Permalink
Post by JoDeGr8
In my app i will install a keyboard hook. when the user presses a
special hotkey all the text files in the active folder will be
selected. Please tell me how to achieve it. I saw SelectItem in the
IShellFolder but that doesn't seems to work for me. Please advice.
The phrase "active folder" doesn't have any general meaning. If Notepad is
running, what are you going to select?

If you're only interested in Explorer, I believe you can do this with an
Explorer shell extension. Such an extension has access to some of the
internals and interfaces of the shell.
--
Tim Roberts, ***@probo.com
Providenza & Boekelheide, Inc.
Loading...