Click here to Skip to main content
13,558,882 members
Rate this:
 
Please Sign up or sign in to vote.
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 1-Feb-13 3:17am
Updated 1-Feb-13 3:27am
v2
Comments
   
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

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

Solution 1

  Permalink  
Comments
merano 16-Sep-13 4:57am
   
no problem:

http://msdn.microsoft.com/en-us/library/vstudio/bb983827.aspx
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?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02-2016 | 2.8.180515.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2018
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