From 1ab93d3afabe3a5872040b5acafc9f113c196a2b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Mar 2017 15:56:57 +0300 Subject: some more fixes for 64-bit version --- include/m_message.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/m_message.h b/include/m_message.h index 2ea263bd50..b00e1c0abe 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -71,11 +71,16 @@ struct StatusTextData wchar_t tszText[100]; }; +///////////////////////////////////////////////////////////////////////////////////////// // wparam = (MCONTACT)hContact // lparam = (StatusTextData*) or NULL to clear statusbar // Sets a statusbar line text for the appropriate contact #define MS_MSG_SETSTATUSTEXT "MessageAPI/SetStatusText" +///////////////////////////////////////////////////////////////////////////////////////// +// retrieves some particular info about a SRMM window by contact +// returns 0 if a window was found or an error code otherwise + #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 @@ -90,7 +95,7 @@ struct MessageWindowData 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 @@ -103,7 +108,7 @@ struct MessageWindowEvent DBEVENTINFO *dbei; // database event written on the basis of message sent }; -///////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////////////////////////////////////// // SRMM popup menu // wParam = 0 @@ -131,7 +136,7 @@ struct MessageWindowPopupData int selection; // The menu control id or 0 if no one was selected }; -///////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////////////////////////////////////// // status icons #define MBF_DISABLED 0x01 @@ -170,7 +175,7 @@ EXTERN_C MIR_APP_DLL(int) Srmm_ModifyIcon(MCONTACT hContact, StatusIconData *sid // don't free this memory. EXTERN_C MIR_APP_DLL(StatusIconData*) Srmm_GetNthIcon(MCONTACT hContact, int index); -///////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////////////////////////////////////// // status icons click notification struct StatusIconClickData @@ -191,7 +196,7 @@ struct StatusIconClickData // catch to be notified about the icon list's change. #define ME_MSG_ICONSCHANGED "MessageAPI/IconsChanged" -///////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////////////////////////////////////// // srmm toolbar icons' support // button state flags @@ -265,7 +270,7 @@ EXTERN_C MIR_APP_DLL(void) Srmm_RedrawToolbarIcons(HWND hwndDlg); // You should add your buttons on this event #define ME_MSG_TOOLBARLOADED "SRMM/ButtonsBar/ModuleLoaded" -///////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////////////////////////////////////// // toolbar button clicked event EXTERN_C MIR_APP_DLL(void) Srmm_ClickToolbarIcon(MCONTACT hContact, DWORD idFrom, HWND hwndFrom, BOOL code); @@ -291,7 +296,7 @@ struct CustomButtonClickData DWORD flags; // BBCF_ flags }; -///////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////////////////////////////////////// // toolbar button internal representation #define MIN_CBUTTONID 4000 -- cgit v1.2.3