summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-04-02 19:17:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-04-02 19:17:32 +0300
commitc78da653c2806e0ac72e0c7baa499342a4c637e5 (patch)
tree698ad0ca1188ed901aa13219885aa24a61b47cf8 /plugins
parentd788b07db648f5b435e552943cdd5a7b20a4ea3c (diff)
merge with trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h2
-rwxr-xr-xplugins/Msg_Export/src/FileViewer.cpp2
-rwxr-xr-xplugins/Msg_Export/src/main.cpp9
-rwxr-xr-xplugins/Msg_Export/src/stdafx.h2
-rw-r--r--plugins/NotesAndReminders/src/reminders.cpp1
5 files changed, 14 insertions, 2 deletions
diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h b/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h
index 3f9f2bbc3c..bd94745e5e 100644
--- a/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h
+++ b/plugins/MirandaG15/src/LCDFramework/CLCDTextLog.h
@@ -82,7 +82,7 @@ private:
DWORD m_dwLastScroll = 0;
list<CLogEntry*> m_Entrys;
- CLCDBar *m_pScrollbar;
+ CLCDBar *m_pScrollbar = nullptr;
};
#endif
diff --git a/plugins/Msg_Export/src/FileViewer.cpp b/plugins/Msg_Export/src/FileViewer.cpp
index 0ec823f2e6..eedbfd316d 100755
--- a/plugins/Msg_Export/src/FileViewer.cpp
+++ b/plugins/Msg_Export/src/FileViewer.cpp
@@ -749,6 +749,7 @@ static INT_PTR CALLBACK DlgProcFileViewer(HWND hwndDlg, UINT msg, WPARAM wParam,
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
pclDlg = (CLHistoryDlg *)lParam;
+ Window_SetIcon_IcoLib(hwndDlg, iconList[0].hIcolib);
SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_EXPORT_MESSAGE)));
{
HWND hRichEdit = GetDlgItem(hwndDlg, IDC_RICHEDIT);
@@ -824,6 +825,7 @@ static INT_PTR CALLBACK DlgProcFileViewer(HWND hwndDlg, UINT msg, WPARAM wParam,
case WM_DESTROY:
Utils_SaveWindowPosition(hwndDlg, pclDlg->hContact, MODULENAME, szFileViewDB);
WindowList_Remove(hInternalWindowList, hwndDlg);
+ Window_FreeIcon_IcoLib(hwndDlg);
return 0;
case WM_SYSCOMMAND:
diff --git a/plugins/Msg_Export/src/main.cpp b/plugins/Msg_Export/src/main.cpp
index 5337cb88e0..2273804ae6 100755
--- a/plugins/Msg_Export/src/main.cpp
+++ b/plugins/Msg_Export/src/main.cpp
@@ -22,6 +22,11 @@ CMPlugin g_plugin;
MWindowList hInternalWindowList = nullptr;
+IconItem iconList[] =
+{
+ { "Main icon", "main", IDI_EXPORT_MESSAGE },
+};
+
/////////////////////////////////////////////////////
// Remember to update the Version in the resource !!!
/////////////////////////////////////////////////////
@@ -108,7 +113,7 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/)
if (!g_bReplaceHistory) {
CMenuItem mi(&g_plugin);
SET_UID(mi, 0x701c543, 0xd078, 0x41dd, 0x95, 0xe3, 0x96, 0x49, 0x8a, 0x72, 0xc7, 0x50);
- mi.hIcolibItem = LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_EXPORT_MESSAGE));
+ mi.hIcolibItem = iconList[0].hIcolib;
mi.position = 1000090100;
mi.name.a = LPGEN("Open E&xported History");
mi.pszService = MS_SHOW_EXPORT_HISTORY;
@@ -134,6 +139,8 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/)
int CMPlugin::Load()
{
+ registerIcon(MODULENAME, iconList, MODULENAME);
+
HookEvent(ME_DB_EVENT_ADDED, nExportEvent);
HookEvent(ME_DB_EVENT_EDITED, nExportEvent);
HookEvent(ME_DB_CONTACT_DELETED, nContactDeleted);
diff --git a/plugins/Msg_Export/src/stdafx.h b/plugins/Msg_Export/src/stdafx.h
index 3b69f6885b..4648e635f6 100755
--- a/plugins/Msg_Export/src/stdafx.h
+++ b/plugins/Msg_Export/src/stdafx.h
@@ -39,6 +39,7 @@ using namespace std;
#include <m_langpack.h>
#include <m_netlib.h>
#include <m_options.h>
+#include <m_icolib.h>
#include <m_history.h>
#include <m_userinfo.h>
#include <m_protosvc.h>
@@ -70,5 +71,6 @@ struct CMPlugin : public PLUGIN<CMPlugin>
extern MWindowList hInternalWindowList;
extern wstring g_sDBPath, g_sMirandaPath;
+extern IconItem iconList[];
#endif \ No newline at end of file
diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp
index f90535beba..920ac3142e 100644
--- a/plugins/NotesAndReminders/src/reminders.cpp
+++ b/plugins/NotesAndReminders/src/reminders.cpp
@@ -1111,6 +1111,7 @@ public:
{
chkAfter.OnChange = Callback(this, &CReminderNotifyDlg::onChange_After);
chkOnDate.OnChange = Callback(this, &CReminderNotifyDlg::onChange_OnDate);
+ dateAgain.OnChange = Callback(this, &CReminderNotifyDlg::onChange_Date);
cmbTimeAgain.OnKillFocus = Callback(this, &CReminderNotifyDlg::onKillFocus_TimeAgain);
cmbRemindAgainIn.OnKillFocus = Callback(this, &CReminderNotifyDlg::onKillFocus_RemindAgain);