|
2 | 2 | using System.Text; |
3 | 3 | using System.Windows.Forms; |
4 | 4 | using System.Collections.Generic; |
5 | | -using System.Drawing; |
6 | 5 | using System.Runtime.InteropServices; |
7 | | -using Kbg.NppPluginNET.Integration; |
8 | 6 |
|
9 | 7 | namespace Kbg.NppPluginNET |
10 | 8 | { |
11 | | - #region " Notepad++ " |
12 | 9 | [StructLayout(LayoutKind.Sequential)] |
13 | 10 | public struct NppData |
14 | 11 | { |
@@ -190,71 +187,4 @@ public struct toolbarIcons |
190 | 187 | public IntPtr hToolbarBmp; |
191 | 188 | public IntPtr hToolbarIcon; |
192 | 189 | } |
193 | | - #endregion |
194 | | - |
195 | | - #region " Platform " |
196 | | - public class Win32 |
197 | | - { |
198 | | - [DllImport("user32")] |
199 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, int wParam, NppMenuCmd lParam); |
200 | | - [DllImport("user32")] |
201 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, int wParam, IntPtr lParam); |
202 | | - [DllImport("user32")] |
203 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, int wParam, int lParam); |
204 | | - [DllImport("user32")] |
205 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, int wParam, out int lParam); |
206 | | - [DllImport("user32")] |
207 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, IntPtr wParam, int lParam); |
208 | | - [DllImport("user32")] |
209 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, int wParam, ref LangType lParam); |
210 | | - [DllImport("user32")] |
211 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, int wParam, [MarshalAs(UnmanagedType.LPWStr)] StringBuilder lParam); |
212 | | - [DllImport("user32")] |
213 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, int wParam, [MarshalAs(UnmanagedType.LPWStr)] string lParam); |
214 | | - [DllImport("user32")] |
215 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, IntPtr wParam, [MarshalAs(UnmanagedType.LPWStr)] string lParam); |
216 | | - [DllImport("user32")] |
217 | | - public static extern IntPtr SendMessage(IntPtr hWnd, NppMsg Msg, IntPtr wParam, [MarshalAs(UnmanagedType.LPWStr)] StringBuilder lParam); |
218 | | - |
219 | | - |
220 | | - // TODO KBG Experimental |
221 | | - [DllImport("user32")] |
222 | | - public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, IntPtr wParam, IntPtr lParam); |
223 | | - [DllImport("user32")] |
224 | | - public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, IntPtr wParam, int lParam); |
225 | | - |
226 | | - |
227 | | - [DllImport("user32")] |
228 | | - public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, IntPtr lParam); |
229 | | - [DllImport("user32")] |
230 | | - public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, string lParam); |
231 | | - [DllImport("user32")] |
232 | | - public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, [MarshalAs(UnmanagedType.LPStr)] StringBuilder lParam); |
233 | | - [DllImport("user32")] |
234 | | - public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, int lParam); |
235 | | - |
236 | | - public const int MAX_PATH = 260; |
237 | | - [DllImport("kernel32")] |
238 | | - public static extern int GetPrivateProfileInt(string lpAppName, string lpKeyName, int nDefault, string lpFileName); |
239 | | - [DllImport("kernel32")] |
240 | | - public static extern bool WritePrivateProfileString(string lpAppName, string lpKeyName, string lpString, string lpFileName); |
241 | | - |
242 | | - public const int MF_BYCOMMAND = 0; |
243 | | - public const int MF_CHECKED = 8; |
244 | | - public const int MF_UNCHECKED = 0; |
245 | | - [DllImport("user32")] |
246 | | - public static extern IntPtr GetMenu(IntPtr hWnd); |
247 | | - [DllImport("user32")] |
248 | | - public static extern int CheckMenuItem(IntPtr hmenu, int uIDCheckItem, int uCheck); |
249 | | - |
250 | | - public const int WM_CREATE = 1; |
251 | | - |
252 | | - [DllImport("user32")] |
253 | | - public static extern bool ClientToScreen(IntPtr hWnd, ref Point lpPoint); |
254 | | - |
255 | | - [DllImport("kernel32")] |
256 | | - public static extern void OutputDebugString(string lpOutputString); |
257 | | - } |
258 | | - |
259 | | - #endregion |
260 | 190 | } |
0 commit comments