?
Solved

Insert an item into syslistview32?

Posted on 2005-05-07
1
Medium Priority
?
235 Views
Last Modified: 2010-10-05
I injected Plugin.dll into target.exe and got the handle of its syslistview32 component. All I want to do is to insert an item into the syslistview32. Well, I tried ListView_InsertItem function and succeeded to insert an item and its subitems (The value of ListView_GetItemCount increases). But it seems that target.exe doesn't know the insert event. When I make a double click on an item, an edit dialog should pop up, but when I click on the new item inserted by plugin.dll, it raises an error-"Please choose an item".

The style of this syslistview32 is LVS_OWNERDRAWFIXED.

Can anyone help me? Thanks very much.
0
Comment
Question by:klemperer
1 Comment
 
LVL 34

Accepted Solution

by:
Slick812 earned 375 total points
ID: 13956926
???
I hope that someone can give you the correct code to solve your problem?
But if you are hacking into another programs process, and hope to use it's control like an syslistview32 that is LVS_OWNERDRAWFIXED then you may have a difficult time of it, if you do not know the coding methods that are used for the owner draw aspects of the list view and the internal code that the process uses to handle double clicks, as you have said -
" it seems that target.exe doesn't know the insert event"

because you have not added the data so it knows that you inserted an item, an this data may not be part of the list view "Item" data that you send in the ListView_InsertItem function. . . . .

there is likely an array of some type or list view Item pointer reference that gives the process the information it uses for a Double click event popup and other list view item functions that use information from the list view item, if you do a List View with a double click event then you will have to have an information storage (pointer, array, variable) for the text or other data to use in that event
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

850 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