本文整理汇总了C++中CLabel::GetXMLToolTip方法的典型用法代码示例。如果您正苦于以下问题:C++ CLabel::GetXMLToolTip方法的具体用法?C++ CLabel::GetXMLToolTip怎么用?C++ CLabel::GetXMLToolTip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLabel
的用法示例。
在下文中一共展示了CLabel::GetXMLToolTip方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Draw_Detour
VOID Draw_Detour(VOID)
{
CLabel* pThisLabel = (CLabel*)this;
CHAR Buffer[MAX_STRING] = {0};
BOOL Found=FALSE;
DWORD index;
if (gAnonymize) {
if (!bTrimnames) {
#if !defined(ROF2EMU) && !defined(UFEMU)
EzDetourwName(CAdvancedLootWnd__UpdateMasterLooter, &CLabelHook::CAdvancedLootWnd__UpdateMasterLooter_Detour, &CLabelHook::CAdvancedLootWnd__UpdateMasterLooter_Trampoline,"CAdvancedLootWnd__UpdateMasterLooter");
EzDetourwName(CComboWnd__GetChoiceText, &CLabelHook::CComboWnd__GetChoiceText_Detour, &CLabelHook::CComboWnd__GetChoiceText_Trampoline,"CComboWnd__GetChoiceText");
EzDetourwName(CComboWnd__InsertChoiceAtIndex, &CLabelHook::CComboWnd__InsertChoiceAtIndex_Detour, &CLabelHook::CComboWnd__InsertChoiceAtIndex_Trampoline,"CComboWnd__InsertChoiceAtIndex");
EzDetourwName(CAdvancedLootWnd__AddPlayerToList, &CLabelHook::CAdvancedLootWnd__AddPlayerToList_Detour, &CLabelHook::CAdvancedLootWnd__AddPlayerToList_Trampoline,"CAdvancedLootWnd__AddPlayerToList");
if (pAdvancedLootWnd && GetGameState() == GAMESTATE_INGAME)
{
CleanupLootCombo(true);
}
#endif
EzDetourwName(CListWnd__AddString, &CLabelHook::CListWnd__AddString_Detour, &CLabelHook::CListWnd__AddString_Trampoline,"CListWnd__AddString");
EzDetourwName(CEverQuest__trimName, &CLabelHook::CEverQuest__trimName_Detour, &CLabelHook::CEverQuest__trimName_Trampoline,"CEverQuest__trimName");
EzDetourwName(__GetGaugeValueFromEQ, GetGaugeValueFromEQ_Detour, GetGaugeValueFromEQ_Trampoline,"__GetGaugeValueFromEQ");
EzDetourwName(__GetLabelFromEQ, GetLabelFromEQ_Detour, GetLabelFromEQ_Trampoline,"__GetLabelFromEQ");
bTrimnames = 1;
}
if (pThisLabel && pThisLabel->CGetWindowText()) {
GetCXStr(pThisLabel->CGetWindowText(), Buffer);
Anonymize(Buffer,MAX_STRING);
}
} else {
if (bTrimnames) {
bTrimnames = 0;
#if !defined(ROF2EMU) && !defined(UFEMU)
RemoveDetour(CComboWnd__GetChoiceText);
RemoveDetour(CComboWnd__InsertChoiceAtIndex);
RemoveDetour(CAdvancedLootWnd__AddPlayerToList);
#endif
RemoveDetour(CListWnd__AddString);
RemoveDetour(CEverQuest__trimName);
RemoveDetour(__GetGaugeValueFromEQ);
RemoveDetour(__GetLabelFromEQ);
#if !defined(ROF2EMU) && !defined(UFEMU)
CleanupLootCombo(false);
RemoveDetour(CAdvancedLootWnd__UpdateMasterLooter);
#endif
}
}
Draw_Trampoline();
if ((DWORD)pThisLabel->EQType==9999) {
if (!pThisLabel->GetXMLToolTip()) {
strcpy_s(Buffer,"BadCustom");
Found=TRUE;
} else {
//strcpy_s(Buffer,&pThisLabel->XMLToolTip->Text[0]);
STMLToPlainText(&pThisLabel->GetXMLToolTip()->Text[0],Buffer);
ParseMacroParameter(((PCHARINFO)pCharData)->pSpawn,Buffer);
if (!strcmp(Buffer,"NULL"))
Buffer[0]=0;
Found=TRUE;
}
} else if (pThisLabel->EQType==1000) {
for (index=0;Id_PMP[index].ID>0 && !Found;index++) {
if (Id_PMP[index].ID==(DWORD)pThisLabel->EQType) {
strcpy_s(Buffer,Id_PMP[index].PMP);
ParseMacroParameter(((PCHARINFO)pCharData)->pSpawn,Buffer);
if (!strcmp(Buffer,"NULL"))
Buffer[0]=0;
Found=TRUE;
}
}
}
if (Found)
{
pThisLabel->CSetWindowText(Buffer);
//SetCXStr(&(pThisLabel->WindowText), Buffer);
}
}