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.Code:hListView = CreateWindowEx(0, WC_LISTVIEW, NULL, WS_CHILD | WS_VISIBLE | LVS_REPORT | WS_BORDER | LBS_NOTIFY | LVS_SORTASCENDING | LBS_NOREDRAW, 0, 0, 0, 0, hwnd, (HMENU) IDC_SERVLIST, hInstance, NULL);
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
Code:hMainWnd = CreateWindowEx( 0, ClassName, _T("Test List View"), WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN, CW_USEDEFAULT, CW_USEDEFAULT, 650, 450, NULL, NULL, hInstance, NULL);