My list view is a child window of my main window created with the following
when an item is selected, I'm not recieving any messages from my list box.
hListView = CreateWindowEx(0,
WS_CHILD | WS_VISIBLE | LVS_REPORT | WS_BORDER |
LBS_NOTIFY | LVS_SORTASCENDING | LBS_NOREDRAW,
0, 0, 0, 0,
I thought that having the LBS_NOTIFY flag directed all list view messages to the parent window.
I do however receive WM_NOTIFY messages when an item is double clicked.
Any ideas what is going wrong? I'm use windows not dialogs.
For reference, here is my main window creation code
hMainWnd = CreateWindowEx(
_T("Test List View"),
WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,
CW_USEDEFAULT, CW_USEDEFAULT, 650, 450,
NULL, NULL, hInstance, NULL);