m_BoradcastEnd.EnableWindow(FALSE);
m_imageList.Create(32, 32, ILC_COLOR8, 2, 2);
DWORD dwStyle = m_ListUser.GetExtendedStyle();
dwStyle |= LVS_EX_INFOTIP;
m_ListUser.SetExtendedStyle(dwStyle);
for (int i=0; i<5; i++)
{
CBitmap bit;
bit.LoadBitmap(IDB_TEA_ONLINE+i);
m_imageList.Add(&bit, RGB(0, 0, 0));
bit.DeleteObject();
}
EnableToolTips(TRUE);
m_toolTipCtrl.Create(this);
m_toolTipCtrl.SetMaxTipWidth(500);//若屏蔽这行提示信息的格式可能会出现问题,不能换行
m_toolTipCtrl.Activate(TRUE);
m_ListUser.SetImageList(&m_imageList, TVSIL_NORMAL);
m_ListUser.InsertItem(0, "172.16.30.32.231", 0);
m_ListUser.InsertItem(1, "172.16.30.218", 4);
CRect rect;
m_ListUser.GetItemRect(0, &rect, LVIR_BOUNDS);
m_toolTipCtrl.AddTool(&m_ListUser, "MAC:/nHost:/nIP:", &rect, 1);
m_ListUser.GetItemRect(1, &rect, LVIR_BOUNDS);
m_toolTipCtrl.AddTool(&m_ListUser, "gggggggggg/nggggggggsfgsfgsfg", &rect, 2);
BOOL CMutiScreenDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
m_toolTipCtrl.RelayEvent(pMsg);
return CDialog::PreTranslateMessage(pMsg);
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有