Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,
I am working on MFC(TDI) Tab Interface application, The application is developed from VS2008 Feature Pack, Application Type is also "Visual Studio", I need to implement the following,
1. Tooltip text for mouse depicting the absolute path of the file in the Editor pane(Similar to VS 2008 IDE ) when mouse pointer hovers the tab in the editor pane.

How could we implement the above functionality. Please let me know. Thanks in advance.

With Regards,
Posted

1 solution

First you have to initialize CMDITabInfo::m_bTabCustomTooltips to true in your MainFrm::OnCreate().Then you will get AFX_WM_ON_GET_TAB_TOOLTIP on main window.

Then Handle AFX_WM_ON_GET_TAB_TOOLTIP message in the main frame by using the ON_REGISTERED_MESSAGE macro.

In the message handler function, the LPARAM will contains CMFCTabToolTipInfo pointer. you initialise CMFCTabToolTipInfo::m_strText to your tooltip text.

Go to CMDITabInfo::m_bTabCustomTooltips for more info on
 
Share this answer
 

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