big transformation , using DockPanels now
it feels good to me! -Thoys git-svn-id: https://lsleditor.svn.sourceforge.net/svnroot/lsleditor@26 3f4676ac-adda-40fd-8265-58d1435b1672
This commit is contained in:
parent
75c722f354
commit
573823c181
92 changed files with 16899 additions and 760 deletions
64
trunk/Docking/Win32/NativeMethods.cs
Normal file
64
trunk/Docking/Win32/NativeMethods.cs
Normal file
|
@ -0,0 +1,64 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using LSLEditor.Docking.Win32;
|
||||
|
||||
namespace LSLEditor.Docking
|
||||
{
|
||||
internal static class NativeMethods
|
||||
{
|
||||
[DllImport("User32.dll", CharSet=CharSet.Auto)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern bool DragDetect(IntPtr hWnd, Point pt);
|
||||
|
||||
[DllImport("User32.dll", CharSet=CharSet.Auto)]
|
||||
public static extern IntPtr GetFocus();
|
||||
|
||||
[DllImport("User32.dll", CharSet=CharSet.Auto)]
|
||||
public static extern IntPtr SetFocus(IntPtr hWnd);
|
||||
|
||||
[DllImport("User32.dll", CharSet=CharSet.Auto)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern bool PostMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam);
|
||||
|
||||
[DllImport("User32.dll", CharSet=CharSet.Auto)]
|
||||
public static extern uint SendMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam);
|
||||
|
||||
[DllImport("User32.dll", CharSet=CharSet.Auto)]
|
||||
public static extern int ShowWindow(IntPtr hWnd, short cmdShow);
|
||||
|
||||
[DllImport("User32.dll", CharSet=CharSet.Auto)]
|
||||
public static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndAfter, int X, int Y, int Width, int Height, FlagsSetWindowPos flags);
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto)]
|
||||
public static extern int GetWindowLong(IntPtr hWnd, int Index);
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto)]
|
||||
public static extern int SetWindowLong(IntPtr hWnd, int Index, int Value);
|
||||
|
||||
[DllImport("user32.dll", CharSet=CharSet.Auto)]
|
||||
public static extern int ShowScrollBar(IntPtr hWnd, int wBar, int bShow);
|
||||
|
||||
[DllImport("user32.dll", CharSet=CharSet.Auto)]
|
||||
//*********************************
|
||||
// FxCop bug, suppress the message
|
||||
//*********************************
|
||||
[SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", MessageId = "0")]
|
||||
public static extern IntPtr WindowFromPoint(Point point);
|
||||
|
||||
[DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
|
||||
public static extern int GetCurrentThreadId();
|
||||
|
||||
public delegate IntPtr HookProc(int code, IntPtr wParam, IntPtr lParam);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern IntPtr SetWindowsHookEx(Win32.HookType code, HookProc func, IntPtr hInstance, int threadID);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern int UnhookWindowsHookEx(IntPtr hhook);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern IntPtr CallNextHookEx(IntPtr hhook, int code, IntPtr wParam, IntPtr lParam);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue