Print Page | Close Window

AddToolTip in CTabCtrlEx

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5824
Printed Date: 11 November 2025 at 8:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AddToolTip in CTabCtrlEx
Posted By: czlai
Subject: AddToolTip in CTabCtrlEx
Date Posted: 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.



Replies:
Posted By: Oleg
Date Posted: 18 December 2006 at 10:31am
Hi,
Try UpdateToolTip(int nIDTab, LPCTSTR lpszText) for another items.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net