How to get the currentitem

S

Semut

In the OnNewInspector, I could obtain the currentitem by using the Inspector
object pass into the handler to obtain the currentitem like


XXX::OnNewInspector(_InspectorPtr spInspector)
{

spInspector->get_CurrentItem(&spCurrentItem);

}


Any other way to obtain the currentitem than in the OnNewInspector.


thank you.
 
K

Ken Slovak - [MVP - Outlook]

You can get the current item from any Inspector using Inspector.CurrentItem
at any time.
 
K

Ken Slovak - [MVP - Outlook]

Dim objItem As Object
Set objItem = objOL.ActiveInspector.CurrentItem
 
Top