![]() |
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 |
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 |
All times are GMT +1. The time now is 12:25 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-2006 OutlookBanter.com