From b3506557a58f53ed0fc3a96c4ec4a3b8098a542d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Jun 2015 13:35:02 +0000 Subject: - CLISTMENUITEM::cbSize - atavism removed; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryPlusPlus/historypp.dpr | 7 +------ plugins/HistoryPlusPlus/historypp.dproj | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'plugins/HistoryPlusPlus') diff --git a/plugins/HistoryPlusPlus/historypp.dpr b/plugins/HistoryPlusPlus/historypp.dpr index ccaaba045d..3b350fc6de 100644 --- a/plugins/HistoryPlusPlus/historypp.dpr +++ b/plugins/HistoryPlusPlus/historypp.dpr @@ -252,11 +252,8 @@ begin InitEventFilters; ReadEventFilters; + // create contact item in contact menu ZeroMemory(@menuitem,SizeOf(menuItem)); - - //create contact item in contact menu - menuItem.cbSize := SizeOf(menuItem); - menuItem.pszContactOwner := nil; //all contacts menuItem.flags := CMIF_UNICODE; menuItem.Position := 1000090000; @@ -461,7 +458,6 @@ begin NotifyAllForms(HM_NOTF_ICONS2CHANGED,0,0); //change menu icons ZeroMemory(@menuitem,SizeOf(menuItem)); - menuItem.cbSize := SizeOf(menuItem); menuItem.flags := CMIM_ICON; menuItem.hIcon := hppIcons[HPP_ICON_CONTACTHISTORY].handle; CallService(MS_CLIST_MODIFYMENUITEM, MenuHandles[miContact].Handle, LPARAM(@menuItem)); @@ -491,7 +487,6 @@ begin if (PrevShowHistoryCount xor ShowHistoryCount) or (count <> MenuCount) then begin ZeroMemory(@menuitem, SizeOf(menuItem)); - menuItem.cbSize := SizeOf(menuItem); menuItem.flags := CMIM_FLAGS; if hLast = 0 then menuItem.flags := menuItem.flags or CMIF_HIDDEN; diff --git a/plugins/HistoryPlusPlus/historypp.dproj b/plugins/HistoryPlusPlus/historypp.dproj index 240b4619fc..88f6028e9f 100644 --- a/plugins/HistoryPlusPlus/historypp.dproj +++ b/plugins/HistoryPlusPlus/historypp.dproj @@ -8,7 +8,7 @@ Library VCL 13.4 - Win32 + Win64 true -- cgit v1.2.3