How referencing object in Delphi

Posted on 2004-11-18
Last Modified: 2010-04-16
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,


Question by:jlvill
    1 Comment
    LVL 17

    Accepted Solution

    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.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now