From 1e49d6b2cb3812d8e80051cbb3d44891e6532825 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Mar 2017 14:55:06 +0300 Subject: funny, but without cbSize we have no need in MessageWindowInputData at all --- include/delphi/m_message.inc | 7 ------- include/m_message.h | 9 +-------- 2 files changed, 1 insertion(+), 15 deletions(-) (limited to 'include') diff --git a/include/delphi/m_message.inc b/include/delphi/m_message.inc index f8b51e8bea..5ce79317af 100644 --- a/include/delphi/m_message.inc +++ b/include/delphi/m_message.inc @@ -67,13 +67,6 @@ const } MS_MSG_GETWINDOWCLASS:PAnsiChar = 'MessageAPI/WindowClass'; -type - PMessageWindowInputData = ^TMessageWindowInputData; - TMessageWindowInputData = record - hContact: TMCONTACT; - uFlags : int; // see uflags above - end; - const MSG_WINDOW_STATE_EXISTS = $00000001; // Window exists should always be true // if hwndWindow exists diff --git a/include/m_message.h b/include/m_message.h index 43c7612cda..472e6a8f61 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -76,12 +76,6 @@ struct StatusTextData // Sets a statusbar line text for the appropriate contact #define MS_MSG_SETSTATUSTEXT "MessageAPI/SetStatusText" -struct MessageWindowInputData -{ - MCONTACT hContact; - int uFlags; // see uflags above -}; - #define MSG_WINDOW_STATE_EXISTS 0x00000001 // Window exists should always be true if hwndWindow exists #define MSG_WINDOW_STATE_VISIBLE 0x00000002 #define MSG_WINDOW_STATE_FOCUS 0x00000004 @@ -89,14 +83,13 @@ struct MessageWindowInputData struct MessageWindowData { - MCONTACT hContact; int uFlags; // should be same as input data unless 0, then it will be the actual type 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 }; -// wparam = (MessageWindowInputData*) +// 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" -- cgit v1.2.3