From 7de38a08b97e0554e318b8c25806cef5d47259e6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 12 Jun 2014 17:49:53 +0000 Subject: headers of not adopted plugins moved to !Deprecated git-svn-id: http://svn.miranda-ng.org/main/trunk@9438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../ExternalAPI/delphi/m_autoreplacer.inc | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 plugins/!Deprecated/ExternalAPI/delphi/m_autoreplacer.inc (limited to 'plugins/!Deprecated/ExternalAPI/delphi/m_autoreplacer.inc') diff --git a/plugins/!Deprecated/ExternalAPI/delphi/m_autoreplacer.inc b/plugins/!Deprecated/ExternalAPI/delphi/m_autoreplacer.inc new file mode 100644 index 0000000000..bc1d528463 --- /dev/null +++ b/plugins/!Deprecated/ExternalAPI/delphi/m_autoreplacer.inc @@ -0,0 +1,39 @@ +{ + AutoReplacer plugin + by Angelo Luiz Tartari +} + +{$IFNDEF M_AUTOREPLACER} +{$DEFINE M_AUTOREPLACER} + +const + +{ + 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. +} + MS_AUTOREPLACER_ADDWINHANDLE = 'AutoReplacer/AddWinHandle'; + +{ + 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. +} + MS_AUTOREPLACER_REMWINHANDLE = 'AutoReplacer/RemWinHandle'; + + function autoreplacer_AddWinHandle(hwnd: HWND): integer; + begin + Result := CallService(MS_AUTOREPLACER_ADDWINHANDLE, 0, LPARAM(hwnd)); + end; + + function autoreplacer_RemWinHandle(hwnd: HWND): integer; + begin + Result := CallService(MS_AUTOREPLACER_REMWINHANDLE, 0, LPARAM(hwnd)); + end; + +{$ENDIF} \ No newline at end of file -- cgit v1.2.3