tags:

views:

419

answers:

2

Is it possible to have variable size (owner draw) items in the Win32 ListView, if yes, how?

+1  A: 

Check out WM_MEASUREITEM

Serge - appTranslator
ListView controls do not support WM_MEASUREITEM, though.
Remy Lebeau - TeamB
Remy, the docs (see link) don't agree with you.
Serge - appTranslator
+2  A: 

You can probably use Listbox with LBS_OWNERDRAWVARIABLE style for supporting items with variable height. Then Listbox will send WM_MEASUREITEM for each item.

Gadu