You are doing well so far.
Next after you have found the window you have to use EnumChildWindow() API, which is very similar to EnumWindows(), only it calls back with the hWnd of all children of a window.
In the callback you use GetWindowClassName() API to get the classname (similar to using GetWindowText() ) and get the handle of the syslistview32.
Now for the difficult part.
There are lots of messages defined which can be used with the SendMessage() API.
I have not worked with a ListView using SendMessage() yet, but I recall reading some info about LV and SendMessage() in MSDN (dont ask where) and there would be some research to do.
There are structs (User Defined Types) which describe Item properties and SendMessage() can be used to read text from the items with WM_GETTEXT message.
It would be a task to determine the number of items (rows) and columnheaders (columns) in the LV and then write loop to get the text from each item and off its subitem array.
I found these two modules in my archive. They are from somewhere in the web, some time ago.
I think it is a real treasury for you and what you want to achive.
All definitions of data types around ListView and Items and Columns
All constants for the use with SendMessage() to read and set texts.
All necessary functions for data conversion and acces.
I think studying this toolbox allows to do everything with a ListView as long as you have its hWnd.
I found these two modules in my archive. They are from somewhere in the web, some time ago.
I think it is a real treasury for you and what you want to achive.
All definitions of data types around ListView and Items and Columns
All constants for the use with SendMessage() to read and set texts.
All necessary functions for data conversion and acces.
I think studying this toolbox allows to do everything with a ListView as long as you have its hWnd.
actually im new to this can u modify the code i attached pls
I have added a function in the module to enumerate child windows to find syslistview32 by classname.
Then I have added a few lines of code to your click handler in Form1 to find the MDIchild window and then syslistview.
In fact it is nothing new except for getting the classname in the last step.
I cannot say if it works because I don't have your odin application.
If you are successful to the end, LVHandle will contain the hWnd of the ListView.
Next thing you best study the libraries I gave you before. They should give enough clues to read text from the cells of a listview. I have never worked with these yet, but I'm sure everything is there.
This was modifying your code a little.
Everything else would be writing you a complete program.
You should make an attempt.
I have added a function in the module to enumerate child windows to find syslistview32 by classname.
Then I have added a few lines of code to your click handler in Form1 to find the MDIchild window and then syslistview.
In fact it is nothing new except for getting the classname in the last step.
I cannot say if it works because I don't have your odin application.
If you are successful to the end, LVHandle will contain the hWnd of the ListView.
Next thing you best study the libraries I gave you before. They should give enough clues to read text from the cells of a listview. I have never worked with these yet, but I'm sure everything is there.
This was modifying your code a little.
Everything else would be writing you a complete program.
You should make an attempt.
sorry for late reply i was down on health and also was out of station
thanks friend the code u gave me is very helpful i modified it and now im able to reach till the syslistview32
I am also trying to get data from SysListView32 control of ODIN. i am able to get the handle of SysListView32 and also column headers text. But not able to get the real data from rows below header. I think u have also stuck at this point. Have u find any solution to it. If yes please help me out.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.