outlook 2010 add-in build custom WebViewPane without add-in Express

两盒软妹~` 提交于 2019-11-28 12:41:48

As far as I know this feature is not supported by Outlook API. Products as Add-In Express, btw, can do it by using unofficial and unsupported hooks.

There is a project here that you can look at in order to do the same by yourself. It is an open source project from Microsoft that provides you some kind of API on top of these unsupported hooks.

Dmitry Kostochko

You can do this without Add-in Express as well, as you can see we did it. As the starting point, you can use the WebViewURL and WebViewOn properties of the Outlook.Folder object to show an empty HTML page instead of the native Outlook list of items (supergrid). Then, using the Outlook Object Model's events (BeforeFolderSwitch and FolderSwitch) you can detect that your folder is selected, create your own control, may be a complex one – UserControl, resize it to fit into the needed area and place it as a child window for the Outlook Explorer window. In general, we used a very similar approach in Add-in Express frameworks. All "unsupported hooks", which are in fact plain WinAPI hooks, will be needed only to track the changes in the Outlook Explorer window size and to align your control or form accordingly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!