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 View for Message class



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 27th 07, 12:31 AM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Custom View for Message class

Hello,

I have developed a custom MAPI provider which incorporates a custom message
class. I am trying to create a custom view for the message class and I am
wondering if there are any examples out there or any documentation that I can
refer to. In addition I am curious if we can also have a custom preview
window to display the message. Any thoughts or suggestions would be greatly
appreciated.

Thanks,
Tom -

Ads
  #2  
Old September 27th 07, 02:21 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Custom View for Message class

You can certainly create a custom view either using View.XML or the new View
stuff in Outlook 2007 or you can be hard-core and create the hidden message
for a view and set it up that way. There are some view coding samples using
the Outlook object model at www.outlookcode.com.

Mostly what I do is set up a custom view in the UI and then deconstruct it
to get basic XML for that view, then I modify that as needed. Some
limitations apply using custom views since the XML doesn't handle any
autoformatting. That's exposed in Outlook 2007, prior to that the setting of
any autoformatting is not documented.

A custom preview pane isn't supported (except for form regions for Outlook
2007) so that's undocumented and a complete hack. What you'd need to do is
to create your custom preview window as a Windows dialog and find and
overlay the existing preview pane using Win32 API calls. Messy and
undocumented as I said, but it has been done. One of the earliest examples
of that was the old Chilton preview pane for Outlook 97.

--
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


"Tom at GSD" wrote in message
news
Hello,

I have developed a custom MAPI provider which incorporates a custom
message
class. I am trying to create a custom view for the message class and I am
wondering if there are any examples out there or any documentation that I
can
refer to. In addition I am curious if we can also have a custom preview
window to display the message. Any thoughts or suggestions would be
greatly
appreciated.

Thanks,
Tom -


  #3  
Old September 27th 07, 02:38 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Custom View for Message class

Hi Ken,

Thanks for your help. Is assume that there is similar stuff available for
Outlook 2003? I was reading some documentation on IMAPIViewContext and
thought that interface might be the way to go. It has taken about two months
to construct the provider and it has integrated with Outlook 2003 very
nicely, but now I have create some propriety views to support the new message
class. We have to support both Outllok 2003 and 2007 and I was hoping to use
the same architecture.

Thanks again for your input.






"Ken Slovak - [MVP - Outlook]" wrote:

You can certainly create a custom view either using View.XML or the new View
stuff in Outlook 2007 or you can be hard-core and create the hidden message
for a view and set it up that way. There are some view coding samples using
the Outlook object model at www.outlookcode.com.

Mostly what I do is set up a custom view in the UI and then deconstruct it
to get basic XML for that view, then I modify that as needed. Some
limitations apply using custom views since the XML doesn't handle any
autoformatting. That's exposed in Outlook 2007, prior to that the setting of
any autoformatting is not documented.

A custom preview pane isn't supported (except for form regions for Outlook
2007) so that's undocumented and a complete hack. What you'd need to do is
to create your custom preview window as a Windows dialog and find and
overlay the existing preview pane using Win32 API calls. Messy and
undocumented as I said, but it has been done. One of the earliest examples
of that was the old Chilton preview pane for Outlook 97.

--
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


"Tom at GSD" wrote in message
news
Hello,

I have developed a custom MAPI provider which incorporates a custom
message
class. I am trying to create a custom view for the message class and I am
wondering if there are any examples out there or any documentation that I
can
refer to. In addition I am curious if we can also have a custom preview
window to display the message. Any thoughts or suggestions would be
greatly
appreciated.

Thanks,
Tom -



  #4  
Old September 27th 07, 02:51 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Custom View for Message class

You can do a lot with Outlook 2003 but if you look at the new view stuff for
Outlook 2007 there's a lot more available, like the autoformatting. I
usually either fork my code and use the Outlook 2007 stuff if available or
fall back to just using the XML if only Outlook 2003 or earlier is there.

Spend a little time with a MAPI viewer like OutlookSpy looking at the hidden
messages in folders where custom views have been applied. Like I said I
start out with a view designed using the UI and then go the hidden messages
to start playing. You'd be looking at items with a MessageClass of
IPM.Microsoft.FormDesign.NamedView where PR_SUBJECT is the name of the named
view. The view XML is in a PT_BINARY property.

Then the other repositories for custom views are under IMsgStore\Root
Container\IPM_VIEWS and IPM_COMMON_VIEWS in the hidden items.

--
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


"Tom at GSD" wrote in message
...
Hi Ken,

Thanks for your help. Is assume that there is similar stuff available for
Outlook 2003? I was reading some documentation on IMAPIViewContext and
thought that interface might be the way to go. It has taken about two
months
to construct the provider and it has integrated with Outlook 2003 very
nicely, but now I have create some propriety views to support the new
message
class. We have to support both Outllok 2003 and 2007 and I was hoping to
use
the same architecture.

Thanks again for your input.


  #5  
Old September 27th 07, 03:50 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Custom View for Message class

Thanks Ken. I think I may fork my code for Outlook 2007.



"Ken Slovak - [MVP - Outlook]" wrote:

You can do a lot with Outlook 2003 but if you look at the new view stuff for
Outlook 2007 there's a lot more available, like the autoformatting. I
usually either fork my code and use the Outlook 2007 stuff if available or
fall back to just using the XML if only Outlook 2003 or earlier is there.

Spend a little time with a MAPI viewer like OutlookSpy looking at the hidden
messages in folders where custom views have been applied. Like I said I
start out with a view designed using the UI and then go the hidden messages
to start playing. You'd be looking at items with a MessageClass of
IPM.Microsoft.FormDesign.NamedView where PR_SUBJECT is the name of the named
view. The view XML is in a PT_BINARY property.

Then the other repositories for custom views are under IMsgStore\Root
Container\IPM_VIEWS and IPM_COMMON_VIEWS in the hidden items.

--
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


"Tom at GSD" wrote in message
...
Hi Ken,

Thanks for your help. Is assume that there is similar stuff available for
Outlook 2003? I was reading some documentation on IMAPIViewContext and
thought that interface might be the way to go. It has taken about two
months
to construct the provider and it has integrated with Outlook 2003 very
nicely, but now I have create some propriety views to support the new
message
class. We have to support both Outllok 2003 and 2007 and I was hoping to
use
the same architecture.

Thanks again for your input.



 




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
Problem with right-click-open a custom form sub-message class khn2007 Outlook - Using Forms 0 February 15th 07 07:32 AM
Change Message Class for Outlook 2003 Custom Contacts Form? Stephen Morgan Outlook - Using Contacts 5 February 11th 07 07:36 PM
Problem with right-click-open a custom form sub-message class [email protected] Outlook - General Queries 0 January 24th 07 10:10 AM
Outlook installer class with custom action AtulSureka Add-ins for Outlook 0 July 31st 06 03:39 PM
Adding Custom Action with Installer class AtulSureka Outlook - Using Forms 0 July 31st 06 03:38 PM


All times are GMT +1. The time now is 08:37 AM.


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.