ListBox in TC isnot standard ListView32 control?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
happytc
Junior Member
Junior Member
Posts: 42
Joined: 2011-01-21, 17:47 UTC

ListBox in TC isnot standard ListView32 control?

Post by *happytc »

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?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Listbox in TC is a really ListBox and not ListView. :) So you need to use ListBox messages and not SysListView32 ones.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
happytc
Junior Member
Junior Member
Posts: 42
Joined: 2011-01-21, 17:47 UTC

Post by *happytc »

ghisler(Author) wrote: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.
Thanks a lot. I got it !
Post Reply