Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Windows
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&quot");
}
Posted 1-Feb-13 4:17am
Gbenbam1.1K
Edited 1-Feb-13 4:27am
v2
Comments
Sergey Alexandrovich Kryukov at 1-Feb-13 13:07pm
   
If it a question?
—SA
H.Brydon at 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 at 2-Feb-13 23:36pm
   
Yes i think so :-)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Gbenbam at 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 at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100