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 3:17am
Gbenbam873
Edited 1-Feb-13 3: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)

  Print Answers RSS
0 OriginalGriff 383
1 ChauhanAjay 186
2 Richard Deeming 180
3 Sergey Alexandrovich Kryukov 171
4 Yogesh Kumar Tyagi 165
0 Sergey Alexandrovich Kryukov 6,252
1 OriginalGriff 5,498
2 CPallini 2,473
3 Richard MacCutchan 1,627
4 Abhinav S 1,530


Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2014
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