diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-13 15:09:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-13 15:09:41 +0300 |
commit | 346ae348ae7ee5a594c9fcd17114ae949c1ce201 (patch) | |
tree | 1e42c52d59515646d603a9593ce23d094a5fde20 /protocols/Sametime | |
parent | 7524e8b875b924bb3cee484e90f6cc6bc01515a4 (diff) |
Popup+: fix for a madness with default popup class values
Diffstat (limited to 'protocols/Sametime')
-rw-r--r-- | protocols/Sametime/src/utils.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/protocols/Sametime/src/utils.cpp b/protocols/Sametime/src/utils.cpp index d7bffc8089..e83c2bb823 100644 --- a/protocols/Sametime/src/utils.cpp +++ b/protocols/Sametime/src/utils.cpp @@ -34,7 +34,7 @@ void CSametimeProto::RegisterPopups() debugLogW(L"CSametimeProto::RegisterPopups()");
- POPUPCLASS puc = { sizeof(puc) };
+ POPUPCLASS puc = {};
puc.PluginWindowProc = PopupWindowProc;
puc.flags = PCF_UNICODE;
puc.pszName = szName;
@@ -45,8 +45,6 @@ void CSametimeProto::RegisterPopups() puc.hIcon = CopyIcon(g_plugin.getIcon(IDI_ICON_NOTIFY));
g_plugin.releaseIcon(IDI_ICON_NOTIFY);
puc.iSeconds = 8;
- puc.colorBack = GetSysColor(COLOR_BTNFACE);
- puc.colorText = GetSysColor(COLOR_WINDOWTEXT);
hPopupNotify = Popup_RegisterClass(&puc);
mir_snprintf(szName, "%s_%s", m_szModuleName, "Error");
@@ -54,12 +52,9 @@ void CSametimeProto::RegisterPopups() puc.hIcon = CopyIcon(g_plugin.getIcon(IDI_ICON_ERROR, FALSE));
g_plugin.releaseIcon(IDI_ICON_ERROR);
puc.iSeconds = 10;
- puc.colorBack = GetSysColor(COLOR_BTNFACE);
- puc.colorText = GetSysColor(COLOR_WINDOWTEXT);
hPopupError = Popup_RegisterClass(&puc);
}
-
void CSametimeProto::UnregisterPopups()
{
debugLogW(L"CSametimeProto::RegisterPopups()");
@@ -77,7 +72,7 @@ void CALLBACK sttMainThreadCallback(PVOID dwParam) ErrorDisplay disp = proto->options.err_method;
if (disp == ED_POP) {
- POPUPDATACLASS ppd = { sizeof(ppd) };
+ POPUPDATACLASS ppd = {};
char szName[256];
ppd.szTitle.w = puData->title;
ppd.szText.w = puData->text;
|