From b638838fd6ec1eb32d096e0244e8e0d2a8196c73 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 17 Jan 2014 14:41:49 +0000 Subject: - kernel chat module loads automatically, not on request; - the special structure, CHAT_MANAGER_INITDATA, is used to customize chats; - fix for fonts group for all plugins; - fix for options in tabSRMM git-svn-id: http://svn.miranda-ng.org/main/trunk@7688 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/chat/main.cpp | 9 +++------ plugins/Scriver/src/chat/window.cpp | 6 +++--- 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'plugins/Scriver/src/chat') diff --git a/plugins/Scriver/src/chat/main.cpp b/plugins/Scriver/src/chat/main.cpp index d37559ea20..6a54c7b865 100644 --- a/plugins/Scriver/src/chat/main.cpp +++ b/plugins/Scriver/src/chat/main.cpp @@ -21,9 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "../commonheaders.h" -void RegisterChatFonts( void ); - -//globals +// globals CHAT_MANAGER *pci; HMENU g_hMenu = NULL; @@ -144,9 +142,8 @@ void LoadChatIcons(void) int Chat_Load() { - mir_getCI(&g_Settings); - pci->cbModuleInfo = sizeof(MODULEINFO); - pci->cbSession = sizeof(SESSION_INFO); + CHAT_MANAGER_INITDATA data = { &g_Settings, sizeof(MODULEINFO), sizeof(SESSION_INFO), LPGENT("Messaging")_T("/")LPGENT("Group chats") }; + mir_getCI(&data); pci->OnCreateModule = OnCreateModule; pci->OnNewUser = OnNewUser; diff --git a/plugins/Scriver/src/chat/window.cpp b/plugins/Scriver/src/chat/window.cpp index 091bab7cbd..40ae167644 100644 --- a/plugins/Scriver/src/chat/window.cpp +++ b/plugins/Scriver/src/chat/window.cpp @@ -470,7 +470,7 @@ static LRESULT CALLBACK MessageSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, UINT u2 = 0; COLORREF cr; - LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, NULL, &cr, FALSE); + LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, NULL, &cr); CHARFORMAT2 cf; cf.cbSize = sizeof(CHARFORMAT2); @@ -1142,7 +1142,7 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar { // messagebox COLORREF crFore; - LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, NULL, &crFore, FALSE); + LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, NULL, &crFore); CHARFORMAT2 cf; cf.cbSize = sizeof(CHARFORMAT2); @@ -1893,7 +1893,7 @@ LABEL_SHOWWINDOW: } else { COLORREF cr; - LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, NULL, &cr, FALSE); + LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, NULL, &cr); cf.dwMask = CFM_COLOR; cf.crTextColor = cr; if (pInfo->bSingleFormat) -- cgit v1.2.3