diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-22 13:35:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-22 13:35:02 +0000 |
commit | b3506557a58f53ed0fc3a96c4ec4a3b8098a542d (patch) | |
tree | 520a1cb861afa7600c0553ce8b2558f725a70ed1 /plugins/HistoryPlusPlus/historypp.dpr | |
parent | 4625aafb053a002f0223bfbe76abfbec629feacf (diff) |
- CLISTMENUITEM::cbSize - atavism removed;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryPlusPlus/historypp.dpr')
-rw-r--r-- | plugins/HistoryPlusPlus/historypp.dpr | 7 |
1 files changed, 1 insertions, 6 deletions
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;
|