diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-28 21:45:37 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-28 21:45:37 +0000 |
commit | 30707c980d1560b358dbf2671a4d2a26a1e8173c (patch) | |
tree | 74aee5adaaac976e1398274ca64c5461a60f1feb /protocols/Xfire/src/Xfire_gamelist.cpp | |
parent | 335ec43a4bfdcbbd0b2257037f1f3e0553d89076 (diff) |
various menu initialization quirks
git-svn-id: http://svn.miranda-ng.org/main/trunk@2552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/Xfire_gamelist.cpp')
-rw-r--r-- | protocols/Xfire/src/Xfire_gamelist.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/protocols/Xfire/src/Xfire_gamelist.cpp b/protocols/Xfire/src/Xfire_gamelist.cpp index 3496a2e3f1..c4fb12ee20 100644 --- a/protocols/Xfire/src/Xfire_gamelist.cpp +++ b/protocols/Xfire/src/Xfire_gamelist.cpp @@ -246,16 +246,14 @@ void Xfire_gamelist::clearGamelist() { //erstellt ein dummyeintrag
void Xfire_gamelist::createDummyMenuItem()
{
- CLISTMENUITEM midummy = { 0 };
- midummy.cbSize = sizeof( midummy );
- midummy.position = 500090001;
- midummy.pszName = Translate("Please wait ...");
- //midummy.flags = CMIF_GRAYED; geht nicht bei 0.8.1
- midummy.hIcon = LoadIcon(hinstance,MAKEINTRESOURCE(ID_OP));
- midummy.popupPosition = 500084000;
- midummy.pszPopupName = Translate("Start game");
- midummy.pszContactOwner=protocolname;
- dummymenuitem=Menu_AddMainMenuItem(&midummy);
+ CLISTMENUITEM mi = { sizeof(mi) };
+ 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);
}
//entfernt dummymenueintrag
|