B
basel.sxaffolter
Hi,
I recently developed an Outlook COM addin in vba 6 which initially
creates a button (msoButtonIconAndCaption) in the standard outlook menu
bar. If the user clicks on the button, the current selected message's
will get a specific category. That works fine so far.
Now there are additional requirements.
1. If a message is marked by this specific category, the message icon
has to be changed to a custom one. I know there's a way using a Form
Setup File (.cfg) to assign a custom message class (e.g.
IPM.Note.MyMessageClassSample) and to link the icon with the CFG file.
Finally the Form Setup File can be imported either to the Exchange Org.
Lib. or into the Pers. Lib. By changing the selected message class to
the customized message class, the icon will change to the linked
Message Class defined in the Form Setup File. However, if there is a
selected message which has the forwarded/replied flag set, the message
class will change but not the icon. I know that the icon can also be
changed using CDO:
Set objCDOItem = objCDOSession.GetMessage(strEntryID, strStoreID)
objCDOItem.Fields.Add &H10800003, 511
objCDOItem.Update True
The problem I have here is that I can just use a predefined collection
of icons (PR_ICON_INDEX) and not the customized one. This method would
also allow to change the icon of a message which has the
forwarded/replied flag set, however there seems to be no way to use a
custom one. That's my first problem.
2. The menu bar button needs also a customized icon (the same as below,
published to the forms lib.) which isn't available as a faceid,
therefore a customized icon needs to be assigned to the menu bar button
(msoButtonIconAndCaption). That's my second problem.
I hope that anybody had the same problems in the past and came up whit
a solution.
Thanks
I recently developed an Outlook COM addin in vba 6 which initially
creates a button (msoButtonIconAndCaption) in the standard outlook menu
bar. If the user clicks on the button, the current selected message's
will get a specific category. That works fine so far.
Now there are additional requirements.
1. If a message is marked by this specific category, the message icon
has to be changed to a custom one. I know there's a way using a Form
Setup File (.cfg) to assign a custom message class (e.g.
IPM.Note.MyMessageClassSample) and to link the icon with the CFG file.
Finally the Form Setup File can be imported either to the Exchange Org.
Lib. or into the Pers. Lib. By changing the selected message class to
the customized message class, the icon will change to the linked
Message Class defined in the Form Setup File. However, if there is a
selected message which has the forwarded/replied flag set, the message
class will change but not the icon. I know that the icon can also be
changed using CDO:
Set objCDOItem = objCDOSession.GetMessage(strEntryID, strStoreID)
objCDOItem.Fields.Add &H10800003, 511
objCDOItem.Update True
The problem I have here is that I can just use a predefined collection
of icons (PR_ICON_INDEX) and not the customized one. This method would
also allow to change the icon of a message which has the
forwarded/replied flag set, however there seems to be no way to use a
custom one. That's my first problem.
2. The menu bar button needs also a customized icon (the same as below,
published to the forms lib.) which isn't available as a faceid,
therefore a customized icon needs to be assigned to the menu bar button
(msoButtonIconAndCaption). That's my second problem.
I hope that anybody had the same problems in the past and came up whit
a solution.
Thanks