![]() |
AddToolTip in CTabCtrlEx |
Post Reply
|
| Author | |
czlai
Groupie
Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: AddToolTip in CTabCtrlExPosted: 18 December 2006 at 4:52am |
|
I add 4 lines "AddToolTip" in TabCtrl_vc60 sample program as followed.
if (!m_tabCtrl.AddView(_T("View One - HTML"), RUNTIME_CLASS(CView1), NULL, NULL, 0, 0))
{ TRACE0("Failed to create CView1.\n"); return -1; } m_tabCtrl.AddToolTip(0, "Hello 0"); if (!m_tabCtrl.AddView(_T("View Two"), RUNTIME_CLASS(CView2), NULL, NULL, 1, 1))
{ TRACE0("Failed to create CView2.\n"); return -1; } m_tabCtrl.AddToolTip(1, "Hello 1"); if (!m_tabCtrl.AddView(_T("View Three"), RUNTIME_CLASS(CView3), NULL, NULL, 2, 2))
{ TRACE0("Failed to create CView3.\n"); return -1; } m_tabCtrl.AddToolTip(2, "Hello 2"); if (!m_tabCtrl.AddControl(_T("View Four - Edit List"), &m_listBox, 3, 3))
{ TRACE0("Failed to create edit list.\n"); return -1; } m_tabCtrl.AddToolTip(3, "Hello 3"); It does not work currectly. It showes tooltip "Hello 0" on tab 0, but showes tab names on other tabs.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 December 2006 at 10:31am |
|
Hi,
Try UpdateToolTip(int nIDTab, LPCTSTR lpszText) for another items.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |