summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgs.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-25 18:48:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-25 18:48:18 +0300
commit425b12911e11a8902d2f1963c2ac9c17a8904b30 (patch)
tree73f135ae8d471498517c3a6b8f305fa46aa5871e /plugins/Scriver/src/msgs.h
parentcd4e21415d7f87e9c749eeb7749b832cfb79b69d (diff)
Scriver: killing that old shit with error dialog
Diffstat (limited to 'plugins/Scriver/src/msgs.h')
-rw-r--r--plugins/Scriver/src/msgs.h29
1 files changed, 19 insertions, 10 deletions
diff --git a/plugins/Scriver/src/msgs.h b/plugins/Scriver/src/msgs.h
index 86de8bf663..bb209cb686 100644
--- a/plugins/Scriver/src/msgs.h
+++ b/plugins/Scriver/src/msgs.h
@@ -36,15 +36,6 @@ struct ToolbarButton
int width;
};
-struct ErrorWindowData
-{
- wchar_t *szName;
- wchar_t *szDescription;
- wchar_t *szText;
- MessageSendQueueItem *queueItem;
- HWND hwndParent;
-};
-
struct TabCtrlData
{
int lastClickTime;
@@ -276,7 +267,25 @@ public:
#define EVENTTYPE_JABBER_CHATSTATES 2000
#define EVENTTYPE_JABBER_PRESENCE 2001
-INT_PTR CALLBACK ErrorDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+class CErrorDlg : public CDlgBase
+{
+ ptrW m_wszText;
+ CMStringW m_wszName, m_wszDescr;
+ MessageSendQueueItem *m_queueItem;
+ HWND m_hwndParent;
+
+ CCtrlButton m_btnOk, m_btnCancel;
+
+protected:
+ virtual void OnInitDialog() override;
+
+public:
+ CErrorDlg(const wchar_t *pwszDescr, HWND, MessageSendQueueItem*);
+
+ void onOk(CCtrlButton*);
+ void onCancel(CCtrlButton*);
+};
+
int DbEventIsShown(DBEVENTINFO &dbei);
int DbEventIsCustomForMsgWindow(DBEVENTINFO *dbei);
int DbEventIsMessageOrCustom(DBEVENTINFO *dbei);