Okay, now coming back to my issue..
I have a ListView created using
Code:
HWND hWndListView = CreateWindow(WC_LISTVIEW,
L"",
WS_CHILD |WS_VISIBLE| LVS_REPORT,
rcl.left,
rcl.top,
rcl.right - rcl.left,
rcl.bottom - rcl.top,
hwndParent,
(HMENU)NULL,
hinst,
NULL);
After this I am adding few columns using
Code:
listColumn.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;
listColumn.iSubItem=0;
listColumn.pszText=wszColumnName;
listColumn.cx=100;
listColumn.fmt = LVCFMT_LEFT;
ListView_InsertColumn(hwndListView, 0, &listColumn);
And few Items using
Code:
LVITEM listItem;
listItem.mask = LVIF_TEXT;
listItem.pszText =const_cast<LPWSTR>(wszItemText);
listItem.iItem = 0;
listItem.iSubItem =0;
ListView_InsertItem(m_hwndListView,&listItem);
I would asume this would allow me to select items in the ListView. But currently I am not able to select any items. Even if set LVS_EX_FULLROWSELECT I am not able to select any items.
What am I missing here?