Tool tip problem
-
I want to use tool tips in my listview window, so I followed instruction described in MSDN to add EnableToolTips() in the class initializing code. But something strange is that there is no TTN_NEEDTEXT sent from the control. I use the following code to check if there is any TTN_NEEDTEXT notification message: BOOL CMotorolaView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { NMHDR * pNmhdr=(NMHDR*)lParam; if (pNmhdr->code==TTN_NEEDTEXT) TRACE0("Got TTN_NEEDTEXT message"); return FALSE; } Can anyone tell me is there anything wrong with my code?
Lisoft
-
I want to use tool tips in my listview window, so I followed instruction described in MSDN to add EnableToolTips() in the class initializing code. But something strange is that there is no TTN_NEEDTEXT sent from the control. I use the following code to check if there is any TTN_NEEDTEXT notification message: BOOL CMotorolaView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { NMHDR * pNmhdr=(NMHDR*)lParam; if (pNmhdr->code==TTN_NEEDTEXT) TRACE0("Got TTN_NEEDTEXT message"); return FALSE; } Can anyone tell me is there anything wrong with my code?
Lisoft
lisoft wrote: TTN_NEEDTEXT sent from the control. Have you set the control to send the notify message? Notify = TRUE in the resource editor? Artificial intelligence is no match for natural stupidity. Never argue with an idiot. They will drag you down to their level where they are an expert.