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/Quotes/src/QuoteInfoDlg.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins/Quotes/src/QuoteInfoDlg.cpp') diff --git a/plugins/Quotes/src/QuoteInfoDlg.cpp b/plugins/Quotes/src/QuoteInfoDlg.cpp index ddde8e2a73..32a5f5e84e 100644 --- a/plugins/Quotes/src/QuoteInfoDlg.cpp +++ b/plugins/Quotes/src/QuoteInfoDlg.cpp @@ -273,12 +273,7 @@ namespace { void enable_menu(HGENMENU hMenu, bool bEnable) { - CLISTMENUITEM clmi = { 0 }; - clmi.flags = CMIM_FLAGS; - if (false == bEnable) - clmi.flags |= CMIF_GRAYED; - - Menu_ModifyItem(hMenu, &clmi); + Menu_ModifyItem(hMenu, NULL, INVALID_HANDLE_VALUE, (bEnable) ? 0 : CMIF_GRAYED); } } -- cgit v1.2.3