summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/chat/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-20 22:10:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-20 22:10:45 +0000
commit78a7d1cf713a7aa4ed541323bf53230d5322ac55 (patch)
tree882844ab151049e583c6d252a26a65f4e6310ee7 /plugins/Scriver/src/chat/main.cpp
parent01e4ed1181e3c3c9fce7e5aa5c2f7b7d1d5144c2 (diff)
- 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
Diffstat (limited to 'plugins/Scriver/src/chat/main.cpp')
-rw-r--r--plugins/Scriver/src/chat/main.cpp10
1 files changed, 10 insertions, 0 deletions
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;