diff options
author | Alexey Kulakov <panda75@bk.ru> | 2012-07-04 20:10:29 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2012-07-04 20:10:29 +0000 |
commit | 65e002b63efdb00571d0ba4ec1a73b14e1d7d3a0 (patch) | |
tree | d96b2f52ca3c89172f269cdb172c89cf6141d69c /include/delphi/reserve/m_changekeyboardlayout.inc | |
parent | d7f143dba9e53347a1d7897bcd3989751c7f45f8 (diff) |
Pascal headers moved to include\delphi directory (with small updates)
removed deprecated m_mwclc.h file and link on it in AutoShutdown plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/delphi/reserve/m_changekeyboardlayout.inc')
-rw-r--r-- | include/delphi/reserve/m_changekeyboardlayout.inc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/delphi/reserve/m_changekeyboardlayout.inc b/include/delphi/reserve/m_changekeyboardlayout.inc new file mode 100644 index 0000000000..b1df7628c1 --- /dev/null +++ b/include/delphi/reserve/m_changekeyboardlayout.inc @@ -0,0 +1,31 @@ +{$IFNDEF M_CHANGEKEYBOARDLAYOUT}
+{$DEFINE M_CHANGEKEYBOARDLAYOUT}
+
+const
+// change keyboard layout of text
+// wParam - HWND or NULL for current window
+// lParam must be 0
+// returns 0 on success and returns non-zero (-1) on error.
+ MS_CKL_CHANGELAYOUT 'ChangeKeyboardLayout/ChangeLayout';
+
+//wParam должен быть ноль.
+//lParam - LPCTSTR текста, раскладку которого требуется определить,
+//Возвращает HKL раскладку текста, или NULL в случае ошибки.
+//Примечание: При определении раскладки учитывается опция "Раскладка текста - текущая раскладка"
+ MS_CKL_GETLAYOUTOFTEXT = 'ChangeKeyboardLayout/GetLayoutOfText';
+
+type
+ CKLLayouts = record
+ hklFrom:HKL; // layout of the current text
+ hklTo :HKL; // layout of the result text
+ bTwoWay:bool;
+ end;
+
+const
+//wParam - LPCTSTR исходного текста
+//lParam - указатель на структуру CKLLayouts, содержащую раскладки для
+//изменения текста и опцию "двунаправленного преобразования"
+//Возвращает LPTSTR на результирующую строку
+ MS_CKL_CHANGETEXTLAYOUT = 'ChangeKeyboardLayout/ChangeTextLayout';
+
+{$ENDIF}
|