Changing Icon of message class

Status
Not open for further replies.
T

Tobias Böhm

Hello,

here's what I want to do. My AddIn is creating outlook-folders at

runtime. One for mail one for tasks and another one for tasks. The

items of the last task folder should have a different icon (can be one

of the available outlook-icons).

I found

http://groups.google.com/group/micr...lnk=gst&q=message+class+icon#57d7d93a561a3a07

and did what Sue Mosher suggested. I created a Form, published it,

changed the MessageClass of an item, which then used the new form but

the icon didn't change. Furthermore, the MessageClass of that item was

reset after restarting outlook.

I fifured that I had to change the default class items in that folder

get when created. Also I can't change the Default message class of a

folder. I can change the PR_DEF_MSG_CLASS property via MAPI which

according to OutlookSpy works. But OutlookSpy also says that the

DefaultMessageClass property of the TaskITem property hasn't changed.

I think I'm missing something here. What is the simplest way to

achieve what I want to achieve?

Thanks,

Tobi
 
When you publish a form of any base MessageClass it will use the Post icon

unless you explicitly change the icon in the Properties tab of the form when

it's in design mode. You need to change both the large and small icons for

that new custom MessageClass before you publish the form. At that time you

also should set the Version string property and increment or change it for

every published change you make to the form to avoid forms cache corruption.

After that any item that uses that custom MessageClass will use the icons

you set for that MessageClass.

The default class of a folder is always an intrinsic Outlook item type, such

as PR_CONTAINER_CLASS == IPF.Task for all task type folders.

The PR_DEF_POST_MSGCLASS property can be changed to alter what MessageClass

is used when a new item is created in that folder. That has a property tag

of 0x36E5001E or in DASL syntax it's

"http://schemas.microsoft.com/mapi/proptag/0x36E5001E". If you want new

items created using your custom MessageClass you would set or create that

property to the custom MessageClass name string.

Any icon can be used (large and small) as long as they meet the requirements

for the form icons (16x16 for large icons and 32x32 for small ones).

"Tobias Böhm" <boehm.tobi@googlemail.com> wrote in message

news:8b3677cd-3474-4bc3-8d4b-e62e4d2820e1@18g2000yqa.googlegroups.com...
> Hello,

> here's what I want to do. My AddIn is creating outlook-folders at
> runtime. One for mail one for tasks and another one for tasks. The
> items of the last task folder should have a different icon (can be one
> of the available outlook-icons).

> I found
> http://groups.google.com/group/micr...lnk=gst&q=message+class+icon#57d7d93a561a3a07
> and did what Sue Mosher suggested. I created a Form, published it,
> changed the MessageClass of an item, which then used the new form but
> the icon didn't change. Furthermore, the MessageClass of that item was
> reset after restarting outlook.

> I fifured that I had to change the default class items in that folder
> get when created. Also I can't change the Default message class of a
> folder. I can change the PR_DEF_MSG_CLASS property via MAPI which
> according to OutlookSpy works. But OutlookSpy also says that the
> DefaultMessageClass property of the TaskITem property hasn't changed.

> I think I'm missing something here. What is the simplest way to
> achieve what I want to achieve?

> Thanks,
> Tobi
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Calendar events created on iPhone automatically changing default alert from 'None' to 'Time of Event' Using Outlook.com accounts in Outlook 0
F Auto changing email subject line in bulk Using Outlook 2
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
MattC Changing the font of an email with VBA Outlook VBA and Custom Forms 1
V Outlook 2021 Can anyone explain why my Outlook views keep changing?! Using Outlook 2
wayneame Changing the Form Used by Existing Task Items in a Folder Outlook VBA and Custom Forms 4
S Changing Message Class Outlook VBA and Custom Forms 4
C Pop Server Changing Verizon/Aol to Yahoo Using Outlook 6
P Outlook tasks keeps changing (updating) dates that I type Using Outlook 2
e_a_g_l_e_p_i Changing where data .pst is saved to Using Outlook 3
P Changing the font that the task view shows Using Outlook 5
S Changing colors of today's appointments, but not recurring ones Using Outlook 33
T Changing Sent Items location in Outlook 2019 Using Outlook 0
E Outlook view grouping keeps changing Using Outlook 3
B BCC issues after changing root folder path for gmail Using Outlook 1
M Changing the preferred order for "Put this entry in" list for adding new contacts to the Address Book Using Outlook 1
J Outlook 2010 Changing events in Outlook calendar via opening file, importing CSV Using Outlook 0
A .restrict results changing after moving to Exchange online Outlook VBA and Custom Forms 0
T Outlook Contacts ... Changing Font Size, Style, Bold, etc. Using Outlook 2
N Rule for "on behalf of" - with changing names Using Outlook 2
O Save attachments using hotkey without changing attributes Outlook VBA and Custom Forms 1
M Outlook 2016: Changing default font for Notes and Reading Pane Using Outlook 4
V Changing default date for task follow-up buttons Using Outlook 2
Gary Hile Outlook 2016 changing editor options Using Outlook 6
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
S Problems syncing emails with webmail after changing to Outlook 2016 Using Outlook 1
T Changing default Mail Account in Outlook 2016 - POP3 Using Outlook 1
S Changing notification sound for new incoming messages in Outlook 365/2016 Using Outlook 1
Stephen Weinberg Changing the mailing address checkbox Using Outlook 0
D Outlook 2013 changing iCloud reminder time? Using Outlook 0
C Changing the name of Outlook Messages saved to a folder Using Outlook 1
A Outlook.com changing appointments Using Outlook 8
B Changing CC list to .add Outlook VBA and Custom Forms 2
Diane Poremsky Changing the Message Size in Exchange Server Using Outlook 0
R changing FW: on forward Outlook VBA and Custom Forms 3
B changing Win7 default backup schedule for Previous Versions Using Outlook 0
Diane Poremsky Changing the default *.pst and *.ost sizes Using Outlook 0
P Message Class keeps changing back to IPM.Contact Outlook VBA and Custom Forms 2
C Macro to send email after changing from address and adding signature Outlook VBA and Custom Forms 1
Diane Poremsky Changing Outlook.com color schemes Using Outlook 0
R Outlook calendar appointments Free/Busy time is changing from "Busy" to "Free" Using Outlook 2
W Changing looks of emails in Outlook 2003 Using Outlook 0
L Office 365 Outlook changing default contact folder Using Outlook 0
Diane Poremsky Changing the From Domain in Office 365 Using Outlook 0
R The changing way to access information in Office 365 Using Outlook 0
N Creating or changing the main new mail message template in Outlook 2010 Using Outlook 2
T issue changing [Type] in dbo.ContactMainTable/ contacts seem to be deleted BCM (Business Contact Manager) 5
William Yeack Outlook/Exchange - Changing display of “From” user Using Outlook 3
divan VbaProject: Changing email format Using Outlook 15
C Changing Domain -- Assigned To User field Migration? BCM (Business Contact Manager) 1

Similar threads

Back
Top