diff options
author | George Hazan <ghazan@miranda.im> | 2022-08-19 14:43:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-08-19 14:43:30 +0300 |
commit | 2fc7cab6c488e18f3178b9311418234851f81e7b (patch) | |
tree | 6fd4fcf26e3f25a788c708438611f811d303ff82 /plugins/VoiceService/src | |
parent | 63978bd41af7227a2f23945ffa3033f900f5d1f4 (diff) |
VoiceService: make contact name bold
Diffstat (limited to 'plugins/VoiceService/src')
-rw-r--r-- | plugins/VoiceService/src/VoiceCall.cpp | 9 | ||||
-rw-r--r-- | plugins/VoiceService/src/stdafx.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/VoiceService/src/VoiceCall.cpp b/plugins/VoiceService/src/VoiceCall.cpp index 4d5285761d..f40d0a3f40 100644 --- a/plugins/VoiceService/src/VoiceCall.cpp +++ b/plugins/VoiceService/src/VoiceCall.cpp @@ -76,12 +76,21 @@ VoiceCall::~VoiceCall() RemoveNotifications(); mir_free(id); id = NULL; + DeleteObject(hContactNameFont); } bool VoiceCall::OnInitDialog() { Button_SetIcon_IcoLib(m_hwnd, IDC_DROPBTN, g_plugin.getIconHandle(IDI_ACTION_DROP)); Button_SetIcon_IcoLib(m_hwnd, IDC_ANSWERBTN, g_plugin.getIconHandle(IDI_ACTION_ANSWER)); + + HFONT hf = (HFONT) SendMessage(m_lblContactName.GetHwnd(), WM_GETFONT, 0,0); + LOGFONT lf; + GetObject(hf, sizeof(LOGFONT), &lf); + lf.lfWeight = FW_BOLD; + hContactNameFont = CreateFontIndirect(&lf); + SendMessage(m_lblContactName.GetHwnd(), WM_SETFONT, (WPARAM)hContactNameFont, 0); + return true; } diff --git a/plugins/VoiceService/src/stdafx.h b/plugins/VoiceService/src/stdafx.h index 23c16fc374..4ef560e84f 100644 --- a/plugins/VoiceService/src/stdafx.h +++ b/plugins/VoiceService/src/stdafx.h @@ -179,7 +179,7 @@ private: CCtrlLabel m_lblStatus, m_lblContactName, m_lblAddress; int m_nsec; CTimer m_calltimer; - + HFONT hContactNameFont; }; extern OBJLIST<VoiceProvider> modules; |