Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Please, how is tool-tip handled for tab control?

Handling tool-tip for tool bar buttons is so easy. The following is a sample
code I used for an application?

case WM_NOTIFY://respond to tooltip request
    nmptr = (LPNMHDR)lParam;

    if(nmptr->code == TTN_GETDISPINFO)
    {
        TTtext = (LPNMTTDISPINFO) lParam;

        if(TTtext->hdr.code == TTN_GETDISPINFO)
        {
            switch(TTtext->hdr.idFrom)
            {
                case IDM_FIRST: TTtext->lpszText = _T("First page");
                    break;
                case IDM_LAST: TTtext->lpszText = _T("Last page"");
}
Posted
Updated 1-Feb-13 3:27am
v2
Comments
Sergey Alexandrovich Kryukov 1-Feb-13 13:07pm    
If it a question?
—SA
H.Brydon 2-Feb-13 2:32am    
I think he/she is saying that it works for a button on a toolbar but not for a tab control.
SajeeshCheviry 2-Feb-13 23:36pm    
Yes i think so :-)

1 solution

Perhaps you need CMFCTabToolTipInfo
http://msdn.microsoft.com/de-de/library/vstudio/bb983827
 
Share this answer
 
Comments
Gbenbam 15-Sep-13 23:27pm    
Just checked this solution.Problem is the page is in german or something.Could you give me link to the english version?
merano 16-Sep-13 4:57am    
no problem:

http://msdn.microsoft.com/en-us/library/vstudio/bb983827.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900