summaryrefslogtreecommitdiff
path: root/include/delphi
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-25 15:22:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-25 15:22:06 +0000
commit65e6aa9b5468f26485a236a46fcb18541e1acf1a (patch)
tree61654d2c6f18523580372656d3bda6d7b93be845 /include/delphi
parent8501b9e4faa15257535e71b766f06f16b7971e39 (diff)
rest of genmenu api died
git-svn-id: http://svn.miranda-ng.org/main/trunk@14382 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/delphi')
-rw-r--r--include/delphi/m_genmenu.inc100
-rw-r--r--include/delphi/m_helpers.inc14
2 files changed, 10 insertions, 104 deletions
diff --git a/include/delphi/m_genmenu.inc b/include/delphi/m_genmenu.inc
index 42e0d2c4bd..400abdf6ec 100644
--- a/include/delphi/m_genmenu.inc
+++ b/include/delphi/m_genmenu.inc
@@ -86,29 +86,6 @@ plugin may add different menu items with some service.
(pszPopupName=(AnsiChar *)hMenuItem - for make child of popup)
}
-const
-{
- builds the SubGroup menu
- wParam=lParam=0
- returns a HMENU identifying the menu.
-}
- MS_CLIST_MENUBUILDSUBGROUP:PAnsiChar = 'CList/MenuBuildSubGroup';
-
-{
- add a new item to the SubGroup menus
- wParam=lpGroupMenuParam, params to call when exec menuitem
- lParam=(LPARAM)(CLISTMENUITEM*)&mi
-}
- MS_CLIST_ADDSUBGROUPMENUITEM:PAnsiChar = 'CList/AddSubGroupMenuItem';
-
-{
- the SubGroup menu is about to be built
- wParam=lParam=0
-}
- ME_CLIST_PREBUILDSUBGROUPMENU:PAnsiChar = 'CList/PreBuildSubGroupMenu';
-
-// SubGroup MENU
-
// Group MENU
type
PGroupMenuParam = ^TGroupMenuParam;
@@ -119,33 +96,12 @@ type
const
{
- builds the Group menu
- wParam=lParam=0
- returns a HMENU identifying the menu.
-}
- MS_CLIST_MENUBUILDGROUP:PAnsiChar = 'CList/MenuBuildGroup';
-
-{
- add a new item to the Group menus
- wParam=lpGroupMenuParam, params to call when exec menuitem
- lParam=(LPARAM)(CLISTMENUITEM*)&mi
-}
- MS_CLIST_ADDGROUPMENUITEM:PAnsiChar = 'CList/AddGroupMenuItem';
-
-{
the Group menu is about to be built
wParam=lParam=0
}
ME_CLIST_PREBUILDGROUPMENU:PAnsiChar = 'CList/PreBuildGroupMenu';
-
// TRAY MENU
-{
- builds the tray menu
- wParam=lParam=0
- returns a HMENU identifying the menu.
-}
- MS_CLIST_MENUBUILDTRAY:PAnsiChar = 'CList/MenuBuildTray';
{
add a new item to the tray menus
@@ -169,20 +125,6 @@ const
ME_CLIST_PREBUILDSTATUSMENU:PAnsiChar = 'CList/PreBuildStatusMenu';
{
- add a new item to the status menu
- wParam=0
- lParam=(LPARAM)(CLISTMENUITEM*)&mi
-}
-//!! MS_CLIST_ADDSTATUSMENUITEM = 'CList/AddStatusMenuItem'; // defined in m_clist.inc
-
-{
- builds the main menu
- wParam=lParam=0
- returns a HMENU identifying the menu.
-}
- MS_CLIST_MENUBUILDMAIN:PAnsiChar = 'CList/MenuBuildMain';
-
-{
the main menu is about to be built
wParam=lParam=0
}
@@ -306,33 +248,25 @@ function Menu_AddItem(hMenuObject:THANDLE; var tmi:TMO_MenuItem) : integer; stdc
external AppDLL name 'Menu_AddItem';
{
- wparam MenuItemHandle
- returns ownerdata on success,NULL on failure
Useful to get and free ownerdata before delete menu item.
}
-const
- MO_MENUITEMGETOWNERDATA:PAnsiChar = 'MO/MenuItemGetOwnerData';
+
+function Menu_GetItemData(hMenuItem:HGENMENU) : pointer; stdcall;
+ external AppDLL name 'Menu_GetItemData';
{
- wparam MenuItemHandle
- lparam PMO_MenuItem
returns 0 on success,-1 on failure
}
- MO_MODIFYMENUITEM:PAnsiChar = 'MO/ModifyMenuItem';
-{
- wparam=MenuItemHandle
- lparam=PMO_MenuItem
- returns 0 and filled PMO_MenuItem structure on success and -1 on failure
-}
- MO_GETMENUITEM:PAnsiChar = 'MO/GetMenuItem';
+function Menu_GetItemInfo(hMenuItem:HGENMENU; var mi:TMO_MenuItem) : integer; stdcall;
+ external AppDLL name 'Menu_GetItemInfo';
{
- wparam=MenuItemHandle
- lparam=0
returns a menu handle on success or NULL on failure
}
- MO_GETDEFAULTMENUITEM:PAnsiChar = 'MO/GetDefaultMenuItem';
+
+function Menu_GetDefaultItem(hMenuItem:HGENMENU) : HGENMENU; stdcall;
+ external AppDLL name 'Menu_GetDefaultItem';
{
wparam=MenuObjectHandle
@@ -340,23 +274,9 @@ const
returns TRUE if it processed the command, FALSE otherwise
this should be called in WM_KEYDOWN
}
- MO_PROCESSHOTKEYS:PAnsiChar = 'MO/ProcessHotKeys';
-
-{
- process a WM_DRAWITEM message
- wparam=0
- lparam=LPDRAWITEMSTRUCT
- returns TRUE if it processed the command, FALSE otherwise
-}
- MO_DRAWMENUITEM:PAnsiChar = 'MO/DrawMenuItem';
-{
- process a WM_MEASUREITEM message
- wparam=0
- lparam=LPMEASUREITEMSTRUCT
- returns TRUE if it processed the command, FALSE otherwise
-}
- MO_MEASUREMENUITEM:PAnsiChar = 'MO/MeasureMenuItem';
+function Menu_ProcessHotKey(hMenuObject:THANDLE; vKey:DWORD) : integer; stdcall;
+ external AppDLL name 'Menu_ProcessHotKey';
{
sets an option for the whole menu object
diff --git a/include/delphi/m_helpers.inc b/include/delphi/m_helpers.inc
index a005f5c9ec..1d68b6501e 100644
--- a/include/delphi/m_helpers.inc
+++ b/include/delphi/m_helpers.inc
@@ -57,8 +57,6 @@ function Menu_AddMainMenuItem (mi:PCLISTMENUITEM):HGENMENU;
function Menu_AddContactMenuItem (mi:PCLISTMENUITEM):HGENMENU;
function Menu_AddStatusMenuItem (mi:PCLISTMENUITEM):HGENMENU;
function Menu_AddProtoMenuItem (mi:PCLISTMENUITEM):HGENMENU;
-function Menu_AddSubGroupMenuItem (mi:PCLISTMENUITEM):HGENMENU;
-function Menu_AddGroupMenuItem (mi:PCLISTMENUITEM):HGENMENU;
function Menu_AddTrayMenuItem (mi:PCLISTMENUITEM):HGENMENU;
function UserInfo_AddPage(wParam:WPARAM; odp:POPTIONSDIALOGPAGE):int_ptr;
@@ -416,18 +414,6 @@ begin
result:=CallService(MS_CLIST_ADDPROTOMENUITEM, 0,LPARAM(mi));
end;
-function Menu_AddSubGroupMenuItem(mi:PCLISTMENUITEM):HGENMENU;
-begin
- mi^.hLangpack:=hLangpack;
- result:=CallService(MS_CLIST_ADDSUBGROUPMENUITEM, 0,LPARAM(mi));
-end;
-
-function Menu_AddGroupMenuItem(mi:PCLISTMENUITEM):HGENMENU;
-begin
- mi^.hLangpack:=hLangpack;
- result:=CallService(MS_CLIST_ADDGROUPMENUITEM, 0,LPARAM(mi));
-end;
-
function Menu_AddTrayMenuItem(mi:PCLISTMENUITEM):HGENMENU;
begin
mi^.hLangpack:=hLangpack;