From 88790eed4ffd9ca555c8f9b73cb014a93b57a34f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Jun 2015 20:38:56 +0000 Subject: Menu_ModifyItem unbound from CLISTMENUITEM structure git-svn-id: http://svn.miranda-ng.org/main/trunk@14334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/frame.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'plugins/MyDetails/src/frame.cpp') diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp index 3b605578f9..c967676e73 100644 --- a/plugins/MyDetails/src/frame.cpp +++ b/plugins/MyDetails/src/frame.cpp @@ -2240,15 +2240,7 @@ INT_PTR HideFrameFunc(WPARAM, LPARAM) void FixMainMenu() { - CLISTMENUITEM mi = { 0 }; - mi.flags = CMIM_NAME | CMIF_TCHAR; - - if (MyDetailsFrameVisible()) - mi.ptszName = LPGENT("Hide my details"); - else - mi.ptszName = LPGENT("Show my details"); - - Menu_ModifyItem(hMenuShowHideFrame, &mi); + Menu_ModifyItem(hMenuShowHideFrame, MyDetailsFrameVisible() ? LPGENT("Hide my details") : LPGENT("Show my details")); } #include -- cgit v1.2.3