Tooltip on CHeaderCtrl of CListCtrl
-
I work with a subclassed CListCtrl. Tooltips will be displayed on the individual subitems; it works as expected. I want to display tooltips on the header items as well. OnToolHitTest receives control, it sets the parameters, but OnToolTipText does not receive the control at all. OnToolTipText will be mapped by ON_NOTIFY(TTN_NEEDTEXTA, 0, On_ToolTipTextA) ON_NOTIFY(TTN_NEEDTEXTW, 0, On_ToolTipTextW) This should work for the CHeaderCtrl as well, should not it? Btw, if I set the text pointer in OnToolHitTest directly in TOOLINFO.lpszText, instead of setting LPSTR_TEXTCALLBACK, it won't be displayed either (though it won't be ignored either: if I set the address of a constant string, I get an error, when it will be tried to release). I did read about TTF_IDISHWND, etc. and tried all possible combinations, to no awail. What else do I have to consider?