Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Knowledge Base > Code Library > Dr Memory's "CopyListview" Demo


Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2002, 09:20 AM
Mathimagics's Avatar
Mathimagics Mathimagics is offline
Algorithms 'R' Us

Forum Leader
* Guru *
 
Join Date: Jun 2002
Location: Canberra
Posts: 4,123
Default Dr Memory's "CopyListview" Demo


This little ripper copies out-of-process ListView data...

Uses cross-process data "pipe" - works on NT/2000 and Win98 platforms (probably any platform! if not let me know!)

Instructions for driving the demo are in CopyListView.frm

Updated the demo (comments only) - see next post

Dr Memory
__________________
Cogito, ergo codo

Last edited by MathImagics; 08-31-2002 at 11:34 AM.
Reply With Quote
  #2  
Old 08-31-2002, 05:11 PM
Mathimagics's Avatar
Mathimagics Mathimagics is offline
Algorithms 'R' Us

Forum Leader
* Guru *
 
Join Date: Jun 2002
Location: Canberra
Posts: 4,123
Default

....
Attached Files
File Type: zip fpdedemo2-lv.zip (41.2 KB, 1295 views)
__________________
Cogito, ergo codo
Reply With Quote
  #3  
Old 02-10-2004, 12:55 PM
Mathimagics's Avatar
Mathimagics Mathimagics is offline
Algorithms 'R' Us

Forum Leader
* Guru *
 
Join Date: Jun 2002
Location: Canberra
Posts: 4,123
Lightbulb ListView Copy - The Full Monty

First of all, thanks to everybody who has sent mail and/or PM's commenting favourably on this demo. Much appreciated!

Many have asked about copying the ListView/TreeView/ToolBar image list Icons, and some I know have been attacking that problem, as I myself have several times over the past few years (and given up on each occasion).

You will be interested to learn, perhaps, that I have developed a very clean solution to this problem.

But it is not possible with window messages and simple cross-process data marshalling, it requires some more high-powered tools.

I'll be publishing details of the solution, which uses 3rd-party tools (my own as it happens) but is written entirely in conventional VB6, on my website in the near future, but you might like to look at these snapshots I took of the first working full ListView copy in action. It not only copies the icons, it can substitute different ones, right into a VB ListView in the target, as the picture shows.

Not evident in these pictures is whether the ImageList spy program has copied the large icons as well - rest assured it has!

I think it's worth noting that this is still a 100% VB6 solution - the tools used here are themselves written entirely in VB6.

Cheers

Dr Memory
Attached Images
File Type: jpg LVcopy1.jpg (154.4 KB, 438 views)
File Type: jpg LVcopy2.jpg (224.7 KB, 400 views)
__________________
Cogito, ergo codo
Reply With Quote
  #4  
Old 11-10-2010, 09:10 PM
Mathimagics's Avatar
Mathimagics Mathimagics is offline
Algorithms 'R' Us

Forum Leader
* Guru *
 
Join Date: Jun 2002
Location: Canberra
Posts: 4,123
Default

Technical Update:

I regularly get queries from people who find that they can't get the text from listview's in particular applications. All other information is obtained correctly, including item counts and column header text, etc, but individual item text entries appear to be null.

Many commercial applications use a technique called "owner-draw". The item text is not stored in the control itself but drawn directly into the window by the application itself. This is most probably an intentional security measure, and it is certainly effective. There is no way to automatically extract the listview text in these cases.
__________________
Cogito, ergo codo
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->