How to get the currentitem

  • Thread starter Thread starter Semut
  • Start date Start date
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.
 
You can get the current item from any Inspector using Inspector.CurrentItem
at any time.
 
Dim objItem As Object
Set objItem = objOL.ActiveInspector.CurrentItem
 
Back
Top