Changeset 4068 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.WinFormsUI/2.3.1/WinFormsUI-2.3.1/Docking/Win32
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.WinFormsUI/2.3.1/WinFormsUI-2.3.1/Docking/Win32/NativeMethods.cs
r2645 r4068 1 1 using System; 2 using System.Diagnostics.CodeAnalysis; 2 3 using System.Drawing; 3 4 using System.Runtime.InteropServices; 4 using System.Diagnostics.CodeAnalysis;5 5 using WeifenLuo.WinFormsUI.Docking.Win32; 6 6 7 namespace WeifenLuo.WinFormsUI.Docking 8 { 9 internal static class NativeMethods 10 { 11 [DllImport("User32.dll", CharSet=CharSet.Auto)] 12 [return: MarshalAs(UnmanagedType.Bool)] 13 public static extern bool DragDetect(IntPtr hWnd, Point pt); 7 namespace WeifenLuo.WinFormsUI.Docking { 8 internal static class NativeMethods { 9 [DllImport("User32.dll", CharSet = CharSet.Auto)] 10 [return: MarshalAs(UnmanagedType.Bool)] 11 public static extern bool DragDetect(IntPtr hWnd, Point pt); 14 12 15 [DllImport("User32.dll", CharSet=CharSet.Auto)]16 13 [DllImport("User32.dll", CharSet = CharSet.Auto)] 14 public static extern IntPtr GetFocus(); 17 15 18 [DllImport("User32.dll", CharSet=CharSet.Auto)]19 16 [DllImport("User32.dll", CharSet = CharSet.Auto)] 17 public static extern IntPtr SetFocus(IntPtr hWnd); 20 18 21 [DllImport("User32.dll", CharSet=CharSet.Auto)]22 23 19 [DllImport("User32.dll", CharSet = CharSet.Auto)] 20 [return: MarshalAs(UnmanagedType.Bool)] 21 public static extern bool PostMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam); 24 22 25 [DllImport("User32.dll", CharSet=CharSet.Auto)]26 23 [DllImport("User32.dll", CharSet = CharSet.Auto)] 24 public static extern uint SendMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam); 27 25 28 [DllImport("User32.dll", CharSet=CharSet.Auto)]29 26 [DllImport("User32.dll", CharSet = CharSet.Auto)] 27 public static extern int ShowWindow(IntPtr hWnd, short cmdShow); 30 28 31 [DllImport("User32.dll", CharSet=CharSet.Auto)]32 29 [DllImport("User32.dll", CharSet = CharSet.Auto)] 30 public static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndAfter, int X, int Y, int Width, int Height, FlagsSetWindowPos flags); 33 31 34 35 32 [DllImport("user32.dll", CharSet = CharSet.Auto)] 33 public static extern int GetWindowLong(IntPtr hWnd, int Index); 36 34 37 38 35 [DllImport("user32.dll", CharSet = CharSet.Auto)] 36 public static extern int SetWindowLong(IntPtr hWnd, int Index, int Value); 39 37 40 [DllImport("user32.dll", CharSet=CharSet.Auto)]41 38 [DllImport("user32.dll", CharSet = CharSet.Auto)] 39 public static extern int ShowScrollBar(IntPtr hWnd, int wBar, int bShow); 42 40 43 [DllImport("user32.dll", CharSet=CharSet.Auto)]44 45 46 47 48 41 [DllImport("user32.dll", CharSet = CharSet.Auto)] 42 //********************************* 43 // FxCop bug, suppress the message 44 //********************************* 45 [SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", MessageId = "0")] 46 public static extern IntPtr WindowFromPoint(Point point); 49 47 50 51 48 [DllImport("Kernel32.dll", CharSet = CharSet.Auto)] 49 public static extern int GetCurrentThreadId(); 52 50 53 51 public delegate IntPtr HookProc(int code, IntPtr wParam, IntPtr lParam); 54 52 55 56 53 [DllImport("user32.dll")] 54 public static extern IntPtr SetWindowsHookEx(Win32.HookType code, HookProc func, IntPtr hInstance, int threadID); 57 55 58 59 56 [DllImport("user32.dll")] 57 public static extern int UnhookWindowsHookEx(IntPtr hhook); 60 58 61 62 63 59 [DllImport("user32.dll")] 60 public static extern IntPtr CallNextHookEx(IntPtr hhook, int code, IntPtr wParam, IntPtr lParam); 61 } 64 62 }
Note: See TracChangeset
for help on using the changeset viewer.