dro873
February 24th, 2005, 01:44 PM
My program has a dialog box with a listview control in report view which has two columns.
1.) Whenever I create an item and add them to the list-view control via a LVM_INSERTITEM message, it always puts the item in the first (left-most) column. How can I control which column the message is added to?
2.) I want my program to enable a button when the user clicks an item in the listview control. I know that it sends a WM_NOTIFY message with the listview ID in the WPARAM, but what specific notification message does it send (LVN_..., NM_..., etc)?
I know this is a pretty basic question, but msdn is spectacularly vague and it seems all the CodeGuru articles deal with MFC. Thanx for your time.
1.) Whenever I create an item and add them to the list-view control via a LVM_INSERTITEM message, it always puts the item in the first (left-most) column. How can I control which column the message is added to?
2.) I want my program to enable a button when the user clicks an item in the listview control. I know that it sends a WM_NOTIFY message with the listview ID in the WPARAM, but what specific notification message does it send (LVN_..., NM_..., etc)?
I know this is a pretty basic question, but msdn is spectacularly vague and it seems all the CodeGuru articles deal with MFC. Thanx for your time.