S
Sammy Lau
Dear all,
I'm now working on an addin that needs to read the view settings of the
Address Cards View , by using MAPI call to read the PR_VIEW_STATE of the
IPM.Microsoft.FolderDesign.NamedView message of a folder. With the view
settings, the addin draws various icons on the addresss cards which is
similar to what plaxo is doing.
A problem I hit before is that the change of view settings hasn't been
saved until there is a folder switch. e.g. the new column width after a
drap-n-drop resizing doesn't reflect in the view settings and the icons
are displayed only according to the old settings.
I worked around this problem by:
hr = m_spExplorer->get_CurrentFolder(&spFolder);
hr = m_spExplorer->putref_CurrentFolder(spFolder);
However, this is not working on Outlook 2002. I'd like to know if anyone
has come across this kind of issue and could shed me some light.
I did take a look at the Explorer->CurrentView->XML (argh.. something
like that) but the column width and the multline minimum size were some
bogus number that I don't understand.
Thanks a lot in advance.
Cheers,
Sammy Lau
I'm now working on an addin that needs to read the view settings of the
Address Cards View , by using MAPI call to read the PR_VIEW_STATE of the
IPM.Microsoft.FolderDesign.NamedView message of a folder. With the view
settings, the addin draws various icons on the addresss cards which is
similar to what plaxo is doing.
A problem I hit before is that the change of view settings hasn't been
saved until there is a folder switch. e.g. the new column width after a
drap-n-drop resizing doesn't reflect in the view settings and the icons
are displayed only according to the old settings.
I worked around this problem by:
hr = m_spExplorer->get_CurrentFolder(&spFolder);
hr = m_spExplorer->putref_CurrentFolder(spFolder);
However, this is not working on Outlook 2002. I'd like to know if anyone
has come across this kind of issue and could shed me some light.
I did take a look at the Explorer->CurrentView->XML (argh.. something
like that) but the column width and the multline minimum size were some
bogus number that I don't understand.
Thanks a lot in advance.
Cheers,
Sammy Lau