OnToolHitTest() is never called in my class. I have done the following:
void
CustomStatic::PreSubclassWindow(){
CStatic::PreSubclassWindow();
EnableToolTips();
}
In my class declaration I have:
protected
:virtual void PreSubclassWindow();
virtual int OnToolHitTest(CPoint point, TOOLINFO * pTI) const;
afx_msg BOOL OnTooltipNotify(UINT id, NMHDR *pNMHDR, LRESULT *pResult);

OnToolHitTest not called for CStatic derived control
banjaxed
Nilesh Hirpara