For Programmers: Free Programming Magazines  


Home > Archive > VC Language > November 2005 > CHeaderCtrl: distinguishing endtrack and dbl-click messages









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CHeaderCtrl: distinguishing endtrack and dbl-click messages
SD

2005-11-28, 7:59 am

Hi,

I have a custom tree control with a header control in it. I need to handle
the HDN_ENDTRACK and HDN_DIVIDERDBLCLICK messages in it. One
problem is that in the HDN_ENDTRACK handler when I get the column widths,
they are not updated correctly, and so my processing is not done correctly.

But, if I handle the HDN_ITEMCHANGED message instead of HDN_ENDTRACK
and get the column widths there, I get the correctly updated values. But then,
the HDN_DIVIDERDBLCLICK handler does not invoked, whereas the
HDN_ITEMCHANGED handler gets invoked here too. So, if I were to handle both
these events (HDN_ENDTRACK and HDN_DIVIDERDBLCLICK) here, how do I
distinguish between these two events?

--
TIA,
SD

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com