CToolTipCtrl m_tooltip;
CRect rect;
OnInitDialog()中:
GetDlgItem(IDC_COMBO1)->GetClientRect(rect);
m_tooltip.Create(this);
m_tooltip.Activate(true);
m_tooltip.SetTipBkColor(RGB(0,144,18));
m_tooltip.SetTipTextColor(RGB(255,254,255));
m_tooltip.SetDelayTime(50);
m_tooltip.SetDelayTime(TTDT_AUTOPOP,8000);
m_tooltip.SetMaxTipWidth(290);
m_tooltip.Activate(true);
m_tooltip.Update();
m_tooltip.AddTool(GetDlgItem(IDC_COMBO1),"可以关闭该对话框",&rect);
m_tooltip.RelayEvent(pMsg);
CRect rect;
OnInitDialog()中:
GetDlgItem(IDC_COMBO1)->GetClientRect(rect);
m_tooltip.Create(this);
m_tooltip.Activate(true);
m_tooltip.SetTipBkColor(RGB(0,144,18));
m_tooltip.SetTipTextColor(RGB(255,254,255));
m_tooltip.SetDelayTime(50);
m_tooltip.SetDelayTime(TTDT_AUTOPOP,8000);
m_tooltip.SetMaxTipWidth(290);
m_tooltip.Activate(true);
m_tooltip.Update();
m_tooltip.AddTool(GetDlgItem(IDC_COMBO1),"可以关闭该对话框",&rect);
m_tooltip.RelayEvent(pMsg);