Question : Detecting Drag of a CListCtrl Header Column Divider

Going into ClassWizard, and adding handlers for the messages HDN_BEGINTRACK, HDN_ENDTRACK and HDN_TRACK is having no effect. The handlers are never being called when I drag the dividers around. What incantation must I recite to make this work?

Answer : Detecting Drag of a CListCtrl Header Column Divider

Hi,

I just think the SetDlgItem is easier... you find a sample here:

http://buerger.metropolis.de/bitbucket/downloads/lcheader.zip

Again, this only helps for the Endtrack notification. But this would be enough for your purpose, I guess.

------------
Using Spy++, you can see all the header notifications sent to the list control, but it doesn't seem to forward all to the list control's parent. And note that, since the Header is a child of the list, you can'ät handle it as reflected notification (although clazz wizard offers this)

Peter
Random Solutions  
 
programming4us programming4us