How to display Inspector right way?

T

TrieTech

Hi Guys,

I've encountered with a problem during Outlook add-in development and
need your help, please.

Here's my code:


CComQIPtr<Outlook::_Explorer> pExplorer;
VRF_HR(m_pApplication->ActiveExplorer(&pExplorer)); // exception

[..bla bla bla to get selected item...]

CComQIPtr<Outlook::_ContactItem> pContactItem;
pContactItem = pDispItem;

CComQIPtr<Outlook::_Inspector> pInspector;
VRF_HR(pContactItem->get_GetInspector(&pInspector)); // exception
pInspector->Activate();

---
Well, the problem is that when inspector displayed (it does well), the
'Next Item' and 'Previous Item' buttons on toolbar are disabled.
Corresponding items in inspector's menu are disabled as well.

Could you please give a hint what's wrong with the code above?
Many thanks in forward!

Best regards, Maxim Tebenev.
TrieTech (http://www.trietech.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top