From be616d81bdaf8fd4ae61b0a145fb81bbdf467994 Mon Sep 17 00:00:00 2001 From: George Hazan <george.hazan@gmail.com> Date: Fri, 26 Jun 2015 22:03:02 +0000 Subject: YEEHAW! CLISTMENUITEM::pszPopupName also died git-svn-id: http://svn.miranda-ng.org/main/trunk@14404 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/Xfire_game.cpp | 3 +-- protocols/Xfire/src/Xfire_gamelist.cpp | 3 +-- protocols/Xfire/src/main.cpp | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols/Xfire/src') diff --git a/protocols/Xfire/src/Xfire_game.cpp b/protocols/Xfire/src/Xfire_game.cpp index 8f7f7b6d7f..8abedcb60c 100644 --- a/protocols/Xfire/src/Xfire_game.cpp +++ b/protocols/Xfire/src/Xfire_game.cpp @@ -437,8 +437,7 @@ void Xfire_game::createMenuitem(unsigned int pos, int dbid) dbid = pos; CLISTMENUITEM mi = { 0 }; - // mi.popupPosition = 500084000; !!!!!!!!!!!!!!!!!!!!!!!! - mi.pszPopupName = Translate("Start game"); + mi.hParentMenu = Menu_CreateRoot(MO_MAIN, LPGENW("Start game"), 500084000); mi.pszContactOwner = protocolname; mir_snprintf(temp, _countof(temp), servicefunction, this->id); diff --git a/protocols/Xfire/src/Xfire_gamelist.cpp b/protocols/Xfire/src/Xfire_gamelist.cpp index 624e79a184..344289044a 100644 --- a/protocols/Xfire/src/Xfire_gamelist.cpp +++ b/protocols/Xfire/src/Xfire_gamelist.cpp @@ -242,11 +242,10 @@ void Xfire_gamelist::clearGamelist() { void Xfire_gamelist::createDummyMenuItem() { CLISTMENUITEM mi = { 0 }; + mi.hParentMenu = Menu_CreateRoot(MO_MAIN, LPGENW("Start game"), 500084000); mi.position = 500090001; mi.pszName = Translate("Please wait..."); mi.hIcon = LoadIcon(hinstance, MAKEINTRESOURCE(ID_OP)); - // mi.popupPosition = 500084000; !!!!!!!!!!!!!!!!!!!!!!! - mi.pszPopupName = Translate("Start game"); mi.pszContactOwner = protocolname; dummymenuitem = Menu_AddMainMenuItem(&mi); } diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp index ab71efc9ee..ab06f85b5c 100644 --- a/protocols/Xfire/src/main.cpp +++ b/protocols/Xfire/src/main.cpp @@ -1114,7 +1114,7 @@ extern "C" __declspec(dllexport) int Load(void) // erweiterte Kontextmen�punkte CLISTMENUITEM mi = { 0 }; - mi.ptszPopupName = _T(protocolname); + mi.hParentMenu = Menu_CreateRoot(MO_CONTACT, _T(protocolname), 500090000); mi.flags = CMIF_TCHAR; char servicefunction[100]; @@ -1188,6 +1188,7 @@ extern "C" __declspec(dllexport) int Load(void) blockfriend = Menu_AddContactMenuItem(&mi); // my fire profile + mi.hParentMenu = Menu_CreateRoot(MO_MAIN, _T(protocolname), 500090000); mir_strcpy(servicefunction, protocolname); mir_strcat(servicefunction, "GotoProfile2"); CreateServiceFunction(servicefunction, GotoProfile2); -- cgit v1.2.3