Custom Folder Icon

T

Tobias Böhm

Hello,

from
http://groups.google.de/group/micro...q=outlook+folder+icon+change#dfd4c56c228bd34f
I learned it's not easy to change the icon of a folder.

My client however really would like that feature in the add-in.
Scott thinks that it's possible by either one of the following ways:

"- You could traverse the window list to the tree control then attempt
to
swap in your own icon for the folder in question but this is
technically a
little tricky and you'd be lucky if it worked without side effects.

or

- Or you could use a system hook on the tree control to either paint
over
the icon in the color you want or to intercept the control's paint
calls and
tweak them to suit. "

Can anyone point me to a ressource where I can find out how to do
this?

Thanks heaps,
Tobias
 
K

Ken Slovak - [MVP - Outlook]

I've never seen any public information on doing that anywhere.

The window for the Navigation Pane is the class with the name "WUNDERBAR".
Under that in Spy++ are 2 window classes, neither of which is a treeview
control.

There is no exposure to any control like that or any means I can see to find
where a specific folder is being displayed in the Navigation Pane.

If this could be done it could only be done at all using Win32 API calls and
Windows message hooks and callbacks, such as intercepting any WM_PAINT
messages directed to the correct window.

Not something I'd want to try and I do tons of Win32 API stuff in my code.
Doing it wrong could crash not only Outlook but Windows.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top