diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-29 05:38:03 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-29 05:38:03 +0000 |
commit | af7e438cfe8ce85e1da234318ed1584e89d952cc (patch) | |
tree | 4cdb1379ef8d6c00389aa89cfb27a404ae2aba56 /plugins/ExternalAPI/m_autoreplacer.h | |
parent | 230623d50baff4e8bf13a8572e0b895bad7b7ed4 (diff) |
only add some plugins and protocols, not adapted
See please maybe not all need us
git-svn-id: http://svn.miranda-ng.org/main/trunk@678 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI/m_autoreplacer.h')
-rw-r--r-- | plugins/ExternalAPI/m_autoreplacer.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/ExternalAPI/m_autoreplacer.h b/plugins/ExternalAPI/m_autoreplacer.h new file mode 100644 index 0000000000..57271a7163 --- /dev/null +++ b/plugins/ExternalAPI/m_autoreplacer.h @@ -0,0 +1,39 @@ +/*
+ AutoReplacer plugin
+ by Angelo Luiz Tartari
+*/
+
+#ifndef M_AUTOREPLACER_H
+#define M_AUTOREPLACER_H
+
+/*
+ Adds a window handle to AutoReplacer.
+ This handle must belong to any window based on a editbox (editbox, richtext, TMemo, TEdit, TMaskEdit, etc.).
+ After adding a handle, AutoReplacer will automatically work on this window.
+ wParam = 0
+ lParam = (LPARAM)(HWND)hwnd
+ Returns: 0 on success, -1 if hwnd is invalid, 1 on error.
+ Example:
+ if(ServiceExists(MS_AUTOREPLACER_ADDWINHANDLE))
+ autoreplacer_AddWinHandle(GetDlgItem(hwndDlg, IDC_EDIT1));
+*/
+#define MS_AUTOREPLACER_ADDWINHANDLE "AutoReplacer/AddWinHandle"
+static int __inline autoreplacer_AddWinHandle(HWND hwnd) {
+ return (int)CallService(MS_AUTOREPLACER_ADDWINHANDLE, (WPARAM)0, (LPARAM)hwnd);
+}
+
+/*
+ Removes a window handle from AutoReplacer's list.
+ wParam = 0
+ lParam = (LPARAM)(HWND)hwnd
+ Returns: 0 on success, -1 if hwnd is invalid, 1 if hwnd wasn't found.
+ Example:
+ if(ServiceExists(MS_AUTOREPLACER_REMWINHANDLE))
+ autoreplacer_RemWinHandle(GetDlgItem(hwndDlg, IDC_EDIT1));
+*/
+#define MS_AUTOREPLACER_REMWINHANDLE "AutoReplacer/RemWinHandle"
+static int __inline autoreplacer_RemWinHandle(HWND hwnd) {
+ return (int)CallService(MS_AUTOREPLACER_REMWINHANDLE, (WPARAM)0, (LPARAM)hwnd);
+}
+
+#endif
\ No newline at end of file |