From aada2ba2711bbfd1cef79a817d85d9700e6beee7 Mon Sep 17 00:00:00 2001
From: Maximus5 <ConEmu.Maximus5@gmail.com>
Date: Wed, 12 Nov 2014 20:24:14 +0300
Subject: [PATCH] Far3bis. Expose WTYPE_SEARCH

---
 enc/enc_rus3.work/meta/structures/windowtype.html | 2 ++
 unicode_far/mix.cpp                               | 1 +
 unicode_far/plugapi.cpp                           | 1 +
 unicode_far/plugin.hpp                            | 1 +
 4 files changed, 5 insertions(+)

diff --git a/enc/enc_rus3.work/meta/structures/windowtype.html b/enc/enc_rus3.work/meta/structures/windowtype.html
index ad7137a..8374ade 100644
--- a/enc/enc_rus3.work/meta/structures/windowtype.html
+++ b/enc/enc_rus3.work/meta/structures/windowtype.html
@@ -47,6 +47,8 @@ struct WindowType
     <td class="cont" width="60%">меню</td></tr>
     <tr class="cont"><td class="cont" width="40%"><a name="WTYPE_HELP">WTYPE_HELP</a></td>
     <td class="cont" width="60%">окно подсказки</td></tr>
+    <tr class="cont"><td class="cont" width="40%"><a name="WTYPE_SEARCH">WTYPE_SEARCH</a></td>
+    <td class="cont" width="60%">окно быстрого поиска в панелях</td></tr>
     </table>
     </div>
 </div>
diff --git a/unicode_far/mix.cpp b/unicode_far/mix.cpp
index 0964591..124192a 100644
--- a/unicode_far/mix.cpp
+++ b/unicode_far/mix.cpp
@@ -153,6 +153,7 @@ WINDOWINFO_TYPE WindowTypeToPluginWindowType(const int fType)
 		{windowtype_dialog,     WTYPE_DIALOG},
 		{windowtype_menu,       WTYPE_VMENU},
 		{windowtype_help,       WTYPE_HELP},
+		{windowtype_search,     WTYPE_SEARCH},
 		{windowtype_combobox,   WTYPE_COMBOBOX},
 		{windowtype_findfolder, WTYPE_FINDFOLDER},
 		{windowtype_grabber,    WTYPE_GRABBER},
diff --git a/unicode_far/plugapi.cpp b/unicode_far/plugapi.cpp
index e4a0b4c..26a62d5 100644
--- a/unicode_far/plugapi.cpp
+++ b/unicode_far/plugapi.cpp
@@ -485,6 +485,7 @@ intptr_t WINAPI apiAdvControl(const GUID* PluginId, ADVANCED_CONTROL_COMMANDS Co
 				case WTYPE_DIALOG:
 				case WTYPE_VMENU:
 				case WTYPE_HELP:
+				case WTYPE_SEARCH:
 				//case WTYPE_COMBOBOX:
 				//case WTYPE_FINDFOLDER:
 				//case WTYPE_GRABBER:
diff --git a/unicode_far/plugin.hpp b/unicode_far/plugin.hpp
index da3fd22..859830d 100644
--- a/unicode_far/plugin.hpp
+++ b/unicode_far/plugin.hpp
@@ -1358,6 +1358,7 @@ enum WINDOWINFO_TYPE
 	WTYPE_DIALOG                    = 4,
 	WTYPE_VMENU                     = 5,
 	WTYPE_HELP                      = 6,
+	WTYPE_SEARCH                    = 7,
 #ifdef FAR_USE_INTERNALS
 	WTYPE_COMBOBOX,
 	WTYPE_FINDFOLDER,
-- 
1.9.4.msysgit.2

