In Reply to Little Cthulhu:
Links are PITA both in Automation and KW. I have just implemented
link analysis tool for my application and I used WinAPI to read
contents of tha "Links of ..." window
Hi, I am currently implementing exactly the same kind of tool
and saw your comment on this thread!
As you say, is is a hell to read
the Edit>Links window, even through API.
I've now been stuck for weeks with the problem of reading the
ListView32 object (the list where the all the
Links info is displayed). As you well know, it is
ownerdrawn, so one cannot simply read its
contents. I tried the usual method of reserving memory for a
LV_ITEM in the CATIA process, sending a LVM_GETITEM message
and reading it back, and I keep getting only empty strings (I tried
a many variations, no results).
I've tried every Spy++-like program you can imagine, including
Spy++, Diversify, WinSpy, SysExporter,... nothing works. I tried to
monitor the messages sent to the process using Spy++, nothing.
I could find the Links data by searching the
entire (!!!) CATIA process memory. It seems that the actual data
are stored somewhere in memory and drawn on the list every
time the user interacts with it, while the list itself is filled
with empty data.
If you could give me any hint on how to read
these Links data, I would really,
really, appreciate. As I said, I am now
completely stuck, and the only viable option for me now seems to
pass through reading the entire memory. I would like to avoid this
if there is some obvious solution I've been stupidly missing!
I am using VBA and have no possibility to access VS in my