diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-09-26 20:24:52 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-09-26 20:24:52 +0000 |
commit | b3f9db42c5bec217b538a33182b89fc83461fb13 (patch) | |
tree | 2e847c42c642f3e7f8be93069e44037856e58332 /protocols/JabberG/src/jabber_frame.cpp | |
parent | 7b7d16119b71147636b6a473c00f93b28c85a054 (diff) |
- use unicode font services for unicode font structures
git-svn-id: http://svn.miranda-ng.org/main/trunk@6245 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_frame.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_frame.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_frame.cpp b/protocols/JabberG/src/jabber_frame.cpp index a8da3a449f..045a136910 100644 --- a/protocols/JabberG/src/jabber_frame.cpp +++ b/protocols/JabberG/src/jabber_frame.cpp @@ -241,23 +241,23 @@ void CJabberInfoFrame::ReloadFonts() {
LOGFONT lfFont;
- FontID fontid = {0};
+ FontIDT fontid = {0};
fontid.cbSize = sizeof(fontid);
- lstrcpyA(fontid.group, "Jabber");
- lstrcpyA(fontid.name, "Frame title");
- m_clTitle = CallService(MS_FONT_GET, (WPARAM)&fontid, (LPARAM)&lfFont);
+ lstrcpyn(fontid.group, _T("Jabber"), SIZEOF(fontid.group));
+ lstrcpyn(fontid.name, _T("Frame title"), SIZEOF(fontid.name));
+ m_clTitle = CallService(MS_FONT_GETT, (WPARAM)&fontid, (LPARAM)&lfFont);
DeleteObject(m_hfntTitle);
m_hfntTitle = CreateFontIndirect(&lfFont);
- lstrcpyA(fontid.name, "Frame text");
- m_clText = CallService(MS_FONT_GET, (WPARAM)&fontid, (LPARAM)&lfFont);
+ lstrcpyn(fontid.name, _T("Frame text"), SIZEOF(fontid.name));
+ m_clText = CallService(MS_FONT_GETT, (WPARAM)&fontid, (LPARAM)&lfFont);
DeleteObject(m_hfntText);
m_hfntText = CreateFontIndirect(&lfFont);
- ColourID colourid = {0};
+ ColourIDT colourid = {0};
colourid.cbSize = sizeof(colourid);
- lstrcpyA(colourid.group, "Jabber");
- lstrcpyA(colourid.name, "Background");
- m_clBack = CallService(MS_COLOUR_GET, (WPARAM)&colourid, 0);
+ lstrcpyn(colourid.group, _T("Jabber"), SIZEOF(colourid.group));
+ lstrcpyn(colourid.name, _T("Background"), SIZEOF(colourid.name));
+ m_clBack = CallService(MS_COLOUR_GETT, (WPARAM)&colourid, 0);
UpdateSize();
}
|