diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-02 23:48:48 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-02 23:48:48 +0300 |
commit | 2714df91a4aaf00d3a05b1675769d2fdb4350287 (patch) | |
tree | 88d7f1bb5d1ab2220eb877ac3477609cab06b129 /plugins/TabSRMM/src/msgoptions.cpp | |
parent | ebdfc32619b48385a2012ccec72c5239579b6c41 (diff) |
fixes #967 (Broken templates preview in TabSRMM native templates editor)
Diffstat (limited to 'plugins/TabSRMM/src/msgoptions.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgoptions.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 5d7869a048..107946d878 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -27,6 +27,7 @@ // Implementation of the option pages
#include "stdafx.h"
+#include "templates.h"
#define DM_GETSTATUSMASK (WM_USER + 10)
@@ -817,14 +818,14 @@ public: void onClick_Modify(CCtrlButton*)
{
- TemplateEditorNew teNew = { 0, 0, m_hwnd };
- CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_TEMPLATEEDIT), m_hwnd, DlgProcTemplateEditor, (LPARAM)&teNew);
+ CTemplateEditDlg *pDlg = new CTemplateEditDlg(FALSE, m_hwnd);
+ pDlg->Show();
}
void onClick_RtlModify(CCtrlButton*)
{
- TemplateEditorNew teNew = { 0, TRUE, m_hwnd };
- CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_TEMPLATEEDIT), m_hwnd, DlgProcTemplateEditor, (LPARAM)&teNew);
+ CTemplateEditDlg *pDlg = new CTemplateEditDlg(TRUE, m_hwnd);
+ pDlg->Show();
}
void onChange_Combo(CCtrlCombo*)
|