A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Custom Folder Icon



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 6th 09, 09:31 AM posted to microsoft.public.outlook.program_addins
Tobias Böhm
external usenet poster
 
Posts: 13
Default Custom Folder Icon

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
  #2  
Old August 6th 09, 02:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Custom Folder Icon

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" wrote in message
...
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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating custom Message Form. Issue with custom Icon Abhishek Tripathi Outlook - Using Forms 0 December 1st 08 11:39 AM
Add custom icon to commandbar button Dhananjay Outlook and VBA 1 October 24th 07 09:58 PM
Add an icon-based custom column in Outlook folder view? Mark B Add-ins for Outlook 0 September 29th 07 12:22 AM
A custom icon for my custom MessageClass joan Outlook - Using Forms 0 March 27th 06 09:23 AM
Custom icon superseded by tracking icon Vaughan Outlook - Using Forms 4 February 24th 06 12:47 PM


All times are GMT +1. The time now is 12:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.