I need to create a list view using WINAPI and MINGW (No possibility of MFC, WTF or any of the sort. Pure C/C++ and WINAPI), but i am not sure which list type to use for the easiest solution.
The listview items will be ownerdrawn, and it requires items to be in lines with fixed item widths.
|-----------------------|
| item1 | item2 | item3 |
|-----------------------|
| item4 | item5 | item6 |
|-----------------------|
| item7 | item8 | item9 |
|-----------------------|
What list type should i use for the easiest solution:
- LVS_REPORT with ownerdrawn items and subitems. (a lot of custom msg handling)
- LVS_ICON with custom width fixing. (not sure how to do it)
- LVS_LIST ??
- ???
Any win32 programming wizard out there, who knows how i could accomplish my goal without much headache ?
Update
Ok i got it. TLDR; solution is to get the cursor position from the user clicked, then do a subitemhittest and find out on which item/subitem the user clicked. Then set that item/subitem to LVIS_SELECTED. But you do have to ownerdraw the list, because windows does not support subitem column selecting natively.
Thx to nariuji and fluter for their supporting tips and tricks.