I have an owner drawn ListView control that loads a file into a text editor when the user double clicks on the desired ListView entry. The owner draw stuff highlights the entry selected by the user. This works. But now I need to be able to simulate the double click event as I will be loading files from an INI file too.
The problem is not loading the file(s), but getting the ListView owner draw stuff to accurately reflect the files currently loaded in the editor. I'm assuming that I need to send the %WM_NOTIFY message to the ListView callback along with lParam variable as a pointer to a NM_LISTVIEW structure. I guess I'm asking if the NM_LISTVIEW structure can be faked in order to send the information I need and how to do that?
The problem is not loading the file(s), but getting the ListView owner draw stuff to accurately reflect the files currently loaded in the editor. I'm assuming that I need to send the %WM_NOTIFY message to the ListView callback along with lParam variable as a pointer to a NM_LISTVIEW structure. I guess I'm asking if the NM_LISTVIEW structure can be faked in order to send the information I need and how to do that?
Comment