![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |