v19 taskbar tooltip problem

04/28/2022 09:06 Miracle`#1
Hello guys! I have a little problem with the switch equipment. I have multiple themes in my files. My problem is shown in the picture.

I have this.

Code:
void CWndTaskBar::PutTooTip(LPSHORTCUT pShortcut, CPoint point, CRect* pRect)
Code:
#ifdef __SWITCH_EQUIP
								else if (pShortcut->m_dwShortcut == SHORTCUT_SWITCH_EQUIP)
								{
									CEditString strEdit;
									if (pShortcut->m_dwId >= 0 && pShortcut->m_dwId < g_pPlayer->m_vEquipSwitchInfo.size())
									{
										__EQUIP_SWITCH_INFO* pEquip = &g_pPlayer->m_vEquipSwitchInfo[pShortcut->m_dwId];
										strEdit.AddEditString(pEquip->strTitle);
										g_toolTip.PutToolTip(pShortcut->m_dwId, strEdit, *pRect, point, 0);
									}
								}
#endif // __SWITCH_EQUIP