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.
 
Do you have a codes snippet for this.

thanks.


Ken Slovak - said:
You can get the current item from any Inspector using
Inspector.CurrentItem
at any time.
 
Dim objItem As Object
Set objItem = objOL.ActiveInspector.CurrentItem
 

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

Back
Top