• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

How referencing object in Delphi

Hi,
I'm hooked into Outlook Express. I can see Objects, I can have their ID, Handle and name but... I can use them because I can reference them.

HwndOE,[197484] is ancestor
  ToolbarWindow32,     ID[20],         Handle{132082} is one of children of HwndOE
    TTreeView,           ID[132068],     Handle{132068} is one of children of ToolbarWindow32

So my question is : How referencing object(like TTreeView) by handle ?  If I want to know the count of items.

Thanks for any help,

Jean-Louis

0
jlvill
Asked:
jlvill
1 Solution
 
Wim ten BrinkCommented:
The treeview in Outlook Express is NOT compatible with the Delphi treeview. You could try to use the Treeview API's that are located in the Commctrl unit (TreeView_GetRoot(), TreeView_GetChild(), TreeView_GetFirstVisible(), etc...) but you will need the handle for the treeview in that case. (But you seem to have that handle.) Also keep in mind that you might be doing some cross-process actions so this could lead into minor problems.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now