You may be interested in this CodeProject article:
http://www.codeproject.com/KB/office...tion_Pane.aspx
It should be noted that this article is based on C# managed code.
However, if you use Visual Studio 2005 or 2008, you could still use it from
C++ and MFC, thanks to C++/CLI extensions to C++.
(I don't know if on CodeProject there is a similar implementation writtne in
native C++/MFC. You may try to find that.)
The second link I posted is instead pure native C++.
Giovanni