I have a program that uses a listview control and 2 edit boxes for user input. I can select items in the listview control perfectly, but when I set focus to the edit boxes, it appears that the selected items in the listview control disappear. If I put the cursor back in focus of the listview control, the items are still selected. Is there anyway to have the selected items stay highlighted when moving to the editbox control?
You need to use the LVS_SHOWSELALWAYS style.