diff options
Diffstat (limited to 'plugins/ClientChangeNotify/src/Misc.h')
-rw-r--r-- | plugins/ClientChangeNotify/src/Misc.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/plugins/ClientChangeNotify/src/Misc.h b/plugins/ClientChangeNotify/src/Misc.h index ccd6df194e..4b08bf9dab 100644 --- a/plugins/ClientChangeNotify/src/Misc.h +++ b/plugins/ClientChangeNotify/src/Misc.h @@ -20,23 +20,17 @@ #pragma once
#include "stdafx.h"
-extern BOOL bPopupExists;
__inline void ShowMsg(wchar_t *FirstLine, wchar_t *SecondLine = L"", bool IsErrorMsg = false, int Timeout = 0)
{
- if (bPopupExists) {
- POPUPDATAW ppd = { 0 };
- ppd.lchIcon = LoadIcon(NULL, IsErrorMsg ? IDI_EXCLAMATION : IDI_INFORMATION);
- mir_wstrcpy(ppd.lpwzContactName, FirstLine);
- mir_wstrcpy(ppd.lpwzText, SecondLine);
- ppd.colorBack = IsErrorMsg ? 0x0202E3 : 0xE8F1FD;
- ppd.colorText = IsErrorMsg ? 0xE8F1FD : 0x000000;
- ppd.iSeconds = Timeout;
- PUAddPopupW(&ppd);
- }
- else {
- MessageBox(NULL, SecondLine, FirstLine, MB_OK | (IsErrorMsg ? MB_ICONEXCLAMATION : MB_ICONINFORMATION));
- }
+ POPUPDATAW ppd = { 0 };
+ ppd.lchIcon = LoadIcon(NULL, IsErrorMsg ? IDI_EXCLAMATION : IDI_INFORMATION);
+ mir_wstrcpy(ppd.lpwzContactName, FirstLine);
+ mir_wstrcpy(ppd.lpwzText, SecondLine);
+ ppd.colorBack = IsErrorMsg ? 0x0202E3 : 0xE8F1FD;
+ ppd.colorText = IsErrorMsg ? 0xE8F1FD : 0x000000;
+ ppd.iSeconds = Timeout;
+ PUAddPopupW(&ppd);
}
__inline void ShowLog(TCString &LogFilePath)
|