1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
-
- using System;
- using System.Runtime.InteropServices;
- namespace Kbg.NppPluginNET.PluginInfrastructure
- {
- [Flags]
- public enum NppTbMsg : uint
- {
-
-
-
-
- CONT_LEFT = 0,
- CONT_RIGHT = 1,
- CONT_TOP = 2,
- CONT_BOTTOM = 3,
- DOCKCONT_MAX = 4,
-
- DWS_ICONTAB = 0x00000001,
- DWS_ICONBAR = 0x00000002,
- DWS_ADDINFO = 0x00000004,
- DWS_PARAMSALL = (DWS_ICONTAB | DWS_ICONBAR | DWS_ADDINFO),
-
- DWS_DF_CONT_LEFT = (CONT_LEFT << 28),
- DWS_DF_CONT_RIGHT = (CONT_RIGHT << 28),
- DWS_DF_CONT_TOP = (CONT_TOP << 28),
- DWS_DF_CONT_BOTTOM = (CONT_BOTTOM << 28),
- DWS_DF_FLOATING = 0x80000000
- }
- [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
- public struct NppTbData
- {
- public IntPtr hClient;
- public string pszName;
- public int dlgID;
-
- public NppTbMsg uMask;
- public uint hIconTab;
- public string pszAddInfo;
-
- public RECT rcFloat;
- public int iPrevCont;
- public string pszModuleName;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct RECT
- {
- public RECT(int left, int top, int right, int bottom)
- {
- Left = left; Top = top; Right = right; Bottom = bottom;
- }
- public int Left;
- public int Top;
- public int Right;
- public int Bottom;
- }
- }
|