diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-04 15:29:02 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-04 15:29:02 +0000 |
commit | 7240ecc8765461bddbd49dd120bf224bc96e2fa0 (patch) | |
tree | b328825ac126b6dc004338db37a06d993861a7d1 /protocols/SkypeWeb/src/skype_proto.cpp | |
parent | 8866bd1781848c32d92216cba2f79417f3e5338b (diff) |
SkypeWeb: Popup classes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13421 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index f9b5ecfb52..b8d9009a6a 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -306,7 +306,7 @@ int CSkypeProto::OnPreShutdown(WPARAM, LPARAM) void CSkypeProto::InitPopups()
{
- /*TCHAR desc[256];
+ TCHAR desc[256];
char name[256];
POPUPCLASS ppc = { sizeof(ppc) };
ppc.flags = PCF_TCHAR;
@@ -318,7 +318,17 @@ void CSkypeProto::InitPopups() ppc.hIcon = Skin_GetIconByHandle(GetIconHandle("inc_call"));
ppc.colorBack = RGB(255, 255, 255);
ppc.colorText = RGB(0, 0, 0);
- ppc.iSeconds = 60;
- //ppc.PluginWindowProc = PopupDlgProcCall;
- m_hPopupClassCall = Popup_RegisterClass(&ppc);*/
+ ppc.iSeconds = 30;
+ ppc.PluginWindowProc = PopupDlgProcCall;
+ m_hPopupClassCall = Popup_RegisterClass(&ppc);
+
+ mir_sntprintf(desc, SIZEOF(desc), _T("%s %s"), m_tszUserName, TranslateT("Notifications"));
+ mir_snprintf(name, SIZEOF(name), "%s_%s", m_szModuleName, "Notification");
+ ppc.ptszDescription = desc;
+ ppc.pszName = name;
+ ppc.hIcon = Skin_GetIconByHandle(GetIconHandle("main"));
+ ppc.colorBack = RGB(255, 255, 255);
+ ppc.colorText = RGB(0, 0, 0);
+ ppc.iSeconds = 5;
+ m_hPopupClassCall = Popup_RegisterClass(&ppc);
}
\ No newline at end of file |