From 78a7d1cf713a7aa4ed541323bf53230d5322ac55 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 20 Jan 2014 22:10:45 +0000 Subject: - MessageBoxFont setting moved from kernel to StdChat; - tabSRMM default settings restored git-svn-id: http://svn.miranda-ng.org/main/trunk@7807 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/chat/chat.h | 5 ++++- plugins/Scriver/src/chat/main.cpp | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'plugins/Scriver') diff --git a/plugins/Scriver/src/chat/chat.h b/plugins/Scriver/src/chat/chat.h index a36cb817f9..795a882eee 100644 --- a/plugins/Scriver/src/chat/chat.h +++ b/plugins/Scriver/src/chat/chat.h @@ -67,7 +67,10 @@ struct SESSION_INFO : public GCSessionInfoBase CommonWindowData windowData; }; -struct GlobalLogSettings : public GlobalLogSettingsBase {}; +struct GlobalLogSettings : public GlobalLogSettingsBase +{ + HFONT MessageBoxFont; +}; extern GlobalLogSettings g_Settings; typedef struct{ diff --git a/plugins/Scriver/src/chat/main.cpp b/plugins/Scriver/src/chat/main.cpp index fd40072ea0..37dc0bb167 100644 --- a/plugins/Scriver/src/chat/main.cpp +++ b/plugins/Scriver/src/chat/main.cpp @@ -135,6 +135,15 @@ static BOOL DoPopup(SESSION_INFO *si, GCEVENT *gce) return TRUE; } +static void OnLoadSettings() +{ + LOGFONT lf; + if (g_Settings.MessageBoxFont) + DeleteObject(g_Settings.MessageBoxFont); + pci->LoadMsgDlgFont(17, &lf, NULL); + g_Settings.MessageBoxFont = CreateFontIndirect(&lf); +} + static void RegisterFonts() { ColourIDT colourid = { sizeof(colourid) }; @@ -171,6 +180,7 @@ int Chat_Load() pci->OnCreateModule = OnCreateModule; pci->OnNewUser = OnNewUser; + pci->OnLoadSettings = OnLoadSettings; pci->OnSetStatus = OnSetStatus; -- cgit v1.2.3