From f5a06e8c7677cb29b100314d17b5931f85c3d33f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 4 Apr 2017 17:12:36 +0300 Subject: - GC_FONTSIZE considered useless; - archaic linked list of modules replaced with the standard LIST<> which is much faster - fix for the module destruction --- include/m_chat.h | 1 - include/m_chat_int.h | 25 +++++++++++-------------- 2 files changed, 11 insertions(+), 15 deletions(-) (limited to 'include') diff --git a/include/m_chat.h b/include/m_chat.h index c241b7675c..6fe8aad0ca 100644 --- a/include/m_chat.h +++ b/include/m_chat.h @@ -133,7 +133,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define GC_ACKMSG 0x0020 // the protocol must acknowlege messages sent #define GC_TYPNOTIF 0x0040 // enable typing notifications. #define GC_CHANMGR 0x0080 // enable the 'channel settings' button -#define GC_FONTSIZE 0x0200 // enable font size selection // Error messages #define GC_ERROR 1 // An internal error occurred. diff --git a/include/m_chat_int.h b/include/m_chat_int.h index 4871a636bd..c57491af82 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -81,21 +81,17 @@ class CChatRoomDlg; struct GCModuleInfoBase { - char* pszModule; - wchar_t* ptszModDispName; - char* pszHeader; - bool bBold; - bool bUnderline; - bool bItalics; - bool bColor; - bool bBkgColor; - bool bChanMgr; - bool bAckMsg; - bool bFontSize; - int nColorCount; - COLORREF* crColors; + char *pszModule; + wchar_t *ptszModDispName; + char *pszHeader; + + bool bBold, bItalics, bUnderline; + bool bColor, bBkgColor; + bool bChanMgr, bAckMsg; + int iMaxText; - MODULEINFO* next; + int nColorCount; + COLORREF *crColors; }; struct COMMANDINFO @@ -339,6 +335,7 @@ struct CHAT_MANAGER // user-defined custom callbacks void (*OnCreateModule)(MODULEINFO*); + void (*OnDestroyModule)(MODULEINFO*); void (*OnCreateSession)(SESSION_INFO*, MODULEINFO*); void (*OnOfflineSession)(SESSION_INFO*); -- cgit v1.2.3