Home > Software engineering >  A strange listview
A strange listview

Time:10-25

Listview is generally a head has a handle with a spy at the task manager is the handle to the there is a "process" to know and the listview a handle a total of 2 handles are respectively the main "syslistview32" and head handle handle "sysheader32
"

The strange listview is divided into three plus the main handle handle a total of four handles
Are respectively the main handle "xxxlistviewclass" then "xxxheaderclass" xxxlistclass xxxviewclass "" ""
"Xxxviewclass" and the text is like and can also use getwindowstext easily obtained from text content
And the other two is no way to get the content "xxxheaderclass" size is calculated and the "xxxlistclass" like a listbox like a listview
Send LVM_GETITEMCOUNT messages for nothing

Who has a good way to ah

thanks

CodePudding user response:

But use SendMessage (hWnd2, LB_GETCOUNT, 0, 0)

CodePudding user response:

Not all listview is comctl32. The DLL to achieve the standard of listview,

The listview is not typical, vb6, vb team is doing - they give up vb5 conctl32. Based in the implementation and DLL yourself, explanation is given to cope with the changing of the operating system version, do better compatibility, ironically, vb6 itself by Microsoft abandoned, and the new operating system, and change the appearance of the listview in vb6 is not compatible with that of carrying,

CodePudding user response:

Here can't send pictures I send a link can figure may see more clearly the

http://www.cxy.me/bbs/view21-43447-1.htm#174258

CodePudding user response:

Know with spy and view the name of the class didn't know you heard with spy++ grabbed if is custom message you are it's not a good way to debug the program
  • Related