I wanted to get "SelectedItemCount" from the control of "TMyListBox1".
I tested many ListBoxes in other programs, and it works fine. Yet for TC it always returned 0.
How to do this in AHK?
ListBox in TC isnot standard ListView32 control?
Moderators: Hacker, petermad, Stefan2, white
Listbox in TC is a really ListBox and not ListView.
So you need to use ListBox messages and not SysListView32 ones.

- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Indeed it's an owner-drawn listbox control, but it also imlements WM_GETTEXT and WM_GETTEXTLEN to get items from the list. Only thumbnail view is a bit special, it shows multiple images per line.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com