minty
July 30th, 1999, 10:02 AM
Hi
One of my colleagues was recently trying to sort items in a CListCtrl using HDN_ITEMCLICK notifcation. She was unable to get it to work. After looking at the code I could find nothing wrong. So I made a very simple test on my machine, and I had the same problem. We overcame the problem by using LVN_COLUMNCLICK and checking for (item == -1) but I was sure that I had used HDN_ITEMCLICK before. We have recently started using VC++ 6. So is this a new bug in the SDK or am I going mad ?
Eugene Gill
One of my colleagues was recently trying to sort items in a CListCtrl using HDN_ITEMCLICK notifcation. She was unable to get it to work. After looking at the code I could find nothing wrong. So I made a very simple test on my machine, and I had the same problem. We overcame the problem by using LVN_COLUMNCLICK and checking for (item == -1) but I was sure that I had used HDN_ITEMCLICK before. We have recently started using VC++ 6. So is this a new bug in the SDK or am I going mad ?
Eugene Gill