From c6519db3afea05236cd41a144110a8a74f3daa96 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Jun 2021 16:29:02 +0300 Subject: fixes #2914 (unified empty history menu items) --- include/delphi/m_history.inc | 6 ++++++ include/m_history.h | 20 +++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/delphi/m_history.inc b/include/delphi/m_history.inc index 8900c12791..bba32c8c9f 100644 --- a/include/delphi/m_history.inc +++ b/include/delphi/m_history.inc @@ -32,4 +32,10 @@ const } MS_HISTORY_SHOWCONTACTHISTORY:PAnsiChar = 'History/ShowContactHistory'; + { + wParam : TMCONTACT + lParam : 0 + } + MS_HISTORY_EMPTY:PAnsiChar = 'History/Empty'; + {$ENDIF} diff --git a/include/m_history.h b/include/m_history.h index 39e78ad9e2..9a1597da79 100644 --- a/include/m_history.h +++ b/include/m_history.h @@ -25,10 +25,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_HISTORY_H__ #define M_HISTORY_H__ 1 -//show the History dialog box for a contact -// wParam = (MCONTACT)hContact -// lParam = 0 -//hContact can be NULL to show system messages -#define MS_HISTORY_SHOWCONTACTHISTORY "History/ShowContactHistory" +///////////////////////////////////////////////////////////////////////////////////////// +// Shows the History dialog box for a contact +// wParam = (MCONTACT)hContact +// lParam = 0 (unused) +// hContact can be NULL to show system messages + +#define MS_HISTORY_SHOWCONTACTHISTORY "History/ShowContactHistory" + +///////////////////////////////////////////////////////////////////////////////////////// +// Empties contact's history +// wParam = (MCONTACT)hContact +// lParam = 0 (unused) +// hContact can be NULL to wipe system history + +#define MS_HISTORY_EMPTY "History/EmptyHistory" #endif // M_HISTORY_H__ -- cgit v1.2.3