diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_message.inc | 14 | ||||
-rw-r--r-- | include/m_message.h | 8 |
2 files changed, 6 insertions, 16 deletions
diff --git a/include/delphi/m_message.inc b/include/delphi/m_message.inc index 249f5e1462..764287720a 100644 --- a/include/delphi/m_message.inc +++ b/include/delphi/m_message.inc @@ -69,22 +69,14 @@ const MSG_WINDOW_STATE_ICONIC = $00000008;
type
- PMessageWindowOutputData = ^TMessageWindowOutputData;
- TMessageWindowOutputData = record
+ PMessageWindowData = ^TMessageWindowData;
+ TMessageWindowData = record
hwndWindow: HWND; // top level window for the contact or NULL if no window exists
uState : int; // see window states
local : pointer; // used to store pointer to custom data
end;
- PMessageWindowData = PMessageWindowOutputData;
- TMessageWindowData = TMessageWindowOutputData;
-const
-{ 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';
+function Srmm_GetWindowData(hContact:TMCONTACT; pResult:PMessageWindowData) : int; stdcall; external AppDll;
type
PStatusTextData = ^TStatusTextData;
diff --git a/include/m_message.h b/include/m_message.h index 87fb73d92c..2ea263bd50 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -85,14 +85,12 @@ struct MessageWindowData {
HWND hwndWindow; //top level window for the contact or NULL if no window exists
int uState; // see window states
- void *local; // used to store pointer to custom data
+ class CSrmmBaseDialog *pDlg; // window class object
};
-// wparam = (MCONTACT)hContact
-// lparam = (MessageWindowData*)
-// returns 0 on success and returns non-zero (1) on error or if no window data exists for that hcontact
-#define MS_MSG_GETWINDOWDATA "MessageAPI/GetWindowData"
+EXTERN_C MIR_APP_DLL(int) Srmm_GetWindowData(MCONTACT hContact, MessageWindowData &mwd);
+///////////////////////////////////////////////////////////////////
// wparam = 0 (unused)
// lparam = (MessageWindowEvent*)
// fired before SRMM writes an entered message into the database
|