PC Review


Reply
Thread Tools Rate Thread

Custom Folder Icon

 
 
Tobias Böhm
Guest
Posts: n/a
 
      6th Aug 2009
Hello,

from
http://groups.google.de/group/micros...d4c56c228bd34f
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
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      6th Aug 2009
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Tobias Böhm" <(E-Mail Removed)> wrote in message
news:87f166a4-ee69-4184-98ad-(E-Mail Removed)...
> Hello,
>
> from
> http://groups.google.de/group/micros...d4c56c228bd34f
> 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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this a bug: Intead of custom icon location, custom web pageshortcuts in Favoroites > Properties > Change icon... > always show %SystemRoot%\system32\SHELL32.dll c627627 Windows XP Help 1 26th Mar 2011 08:35 PM
Add an icon-based custom column in Outlook folder view? Mark B Microsoft Outlook Program Addins 0 29th Sep 2007 12:22 AM
Favorites Folder Read Attribute Un-Set by saving new file so custom Icon DISAPPEARS ! JDJ Windows XP General 1 19th Jul 2006 12:39 AM
Favorites Folder Read Attribute Un-Set by saving new file so custom Icon DISAPPEARS ! JDJ Windows XP Help 1 19th Jul 2006 12:39 AM
Custom Web Page Icon Is Not Displayed in the Favorites Folder joeblow Windows XP Internet Explorer 1 10th Dec 2004 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:16 PM.