summaryrefslogtreecommitdiff
path: root/include/m_message.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-28 15:56:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-28 15:56:57 +0300
commit1ab93d3afabe3a5872040b5acafc9f113c196a2b (patch)
treeec309e3cdd8c34e830022525be003278fae0330f /include/m_message.h
parent2be5844edd93ab3490b4689cad33d75b4c77f3a8 (diff)
some more fixes for 64-bit version
Diffstat (limited to 'include/m_message.h')
-rw-r--r--include/m_message.h19
1 files changed, 12 insertions, 7 deletions
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