diff options
Diffstat (limited to 'include/delphi/m_message.inc')
-rw-r--r-- | include/delphi/m_message.inc | 54 |
1 files changed, 39 insertions, 15 deletions
diff --git a/include/delphi/m_message.inc b/include/delphi/m_message.inc index 5e25657de8..a89204f1b0 100644 --- a/include/delphi/m_message.inc +++ b/include/delphi/m_message.inc @@ -70,18 +70,18 @@ type end;
const
- MS_MSG_GETWINDOWAPI:PAnsiChar = 'MessageAPI/WindowAPI';
{ wparam=0
lparam=0
Returns a dword with the current message api version
Current version is 0,0,0,4
}
+ MS_MSG_GETWINDOWAPI:PAnsiChar = 'MessageAPI/WindowAPI';
- MS_MSG_GETWINDOWCLASS:PAnsiChar = 'MessageAPI/WindowClass';
{ wparam=(AnsiChar*)szBuf
lparam=(int)cbSize size of buffer
Sets the window class name in wParam (ex. "SRMM" for srmm.dll)
}
+ MS_MSG_GETWINDOWCLASS:PAnsiChar = 'MessageAPI/WindowClass';
type
PMessageWindowInputData = ^TMessageWindowInputData;
@@ -113,20 +113,21 @@ type TMessageWindowData = TMessageWindowOutputData;
const
- MS_MSG_GETWINDOWDATA:PAnsiChar = 'MessageAPI/GetWindowData';
{ wparam=(MessageWindowInputData*)
lparam=(MessageWindowOutputData*)
returns 0 on success and returns non-zero (1) on error or if no window data
exists for that hcontact
}
+ MS_MSG_GETWINDOWDATA:PAnsiChar = 'MessageAPI/GetWindowData';
- ME_MSG_WINDOWPOPUP:PAnsiChar = 'MessageAPI/WindowPopupRequested';
{ wParam = 0
lParam = (MessageWindowPopupData *)&MessageWindowPopupData;
Fired to allow plugins to add itens to the msg window popup menu
Always fired twice: once with MSG_WINDOWPOPUP_SHOWING and once with MSG_WINDOWPOPUP_SELECTED.
This is done to allow cleaning of resources.
}
+ ME_MSG_WINDOWPOPUP:PAnsiChar = 'MessageAPI/WindowPopupRequested';
+
MSG_WINDOWPOPUP_SHOWING = 1;
MSG_WINDOWPOPUP_SELECTED = 2;
@@ -145,20 +146,22 @@ type selection:int; // The menu control id or 0 if no one was selected
end;
-// status icons - HICONs will be automatically destroyed when removed or when miranda exits
+// status icons
const
MBF_DISABLED = 1;
MBF_HIDDEN = 2;
+ MBF_UNICODE = 4;
type
- StatusIconData = record
- cbSize :int;
+ pStatusIconData = ^tStatusIconData;
+ tStatusIconData = record
+ cbSize :int; // must be equal to sizeof(StatusIconData)
szModule :PAnsiChar; // used in combo with the dwId below to create a unique identifier
- dwId :DWORD;
+ dwId :DWORD; // uniquely defines a button inside a module
hIcon,
hIconDisabled:HICON; // hIconDisabled is optional - if null, will use hIcon in the disabled state
flags :int; // one of MBF_* above
- szTooltip :PAnsiChar;
+ szTooltip :TChar; // controlled by MBF_UNICODE
end;
const
@@ -166,7 +169,8 @@ const // otherwize it was a left click
type
- StatusIconClickData = record
+ pStatusIconClickData = ^tStatusIconClickData;
+ tStatusIconClickData = record
cbSize :int;
clickLocation:TPOINT; // click location, in screen coordinates
szModule :PAnsiChar;
@@ -175,16 +179,27 @@ type end;
const
+{
+ wParam = hLangpack
+ lParam = (StatusIconData *)&StatusIconData
+}
MS_MSG_ADDICON:PAnsiChar = 'MessageAPI/AddIcon';
-// lParam = (StatusIconData *)&StatusIconData
+{
+ wParam = 0
+ lParam = (StatusIconData *)&StatusIconData
+ only szModule and szId are used
+}
MS_MSG_REMOVEICON:PAnsiChar = 'MessageAPI/RemoveIcon';
+
{
- lParam = (StatusIconData *)&StatusIconData
- only szModule and szId are used
+ wParam = (HANDLE)hContact
+ lParam = (int)zero-based index of a visible icon
+ returns (StatusIconData*)icon description filled for the required contact
+ don't free this memory.
}
+ MS_MSG_GETNTHICON:PAnsiChar = 'MessageAPI/GetNthIcon';
- MS_MSG_MODIFYICON:PAnsiChar = 'MessageAPI/ModifyIcon';
{
wParam = (HANDLE)hContact
lParam = (StatusIconData *)&StatusIconData
@@ -192,11 +207,20 @@ const otherwise, only the flags field is valid
if either hIcon, hIconDisabled or szTooltip is null, they will not be modified
}
+ MS_MSG_MODIFYICON:PAnsiChar = 'MessageAPI/ModifyIcon';
- ME_MSG_ICONPRESSED:PAnsiChar = 'MessageAPI/IconPressed';
{
wParam = (HANDLE)hContact;
lParam = (StatusIconClickData *)&StatusIconClickData;
catch to show a popup menu, etc.
}
+ ME_MSG_ICONPRESSED:PAnsiChar = 'MessageAPI/IconPressed';
+
+{
+ wParam = (HANDLE)hContact;
+ lParam = (StatusIconkData*)pIcon
+ catch to be notified about the icon list's change.
+}
+ ME_MSG_ICONSCHANGED:PAnsiChar = 'MessageAPI/IconsChanged';
+
{$ENDIF}
|