Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

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  
    11using System;
     2using System.Diagnostics.CodeAnalysis;
    23using System.Drawing;
    34using System.Runtime.InteropServices;
    4 using System.Diagnostics.CodeAnalysis;
    55using WeifenLuo.WinFormsUI.Docking.Win32;
    66
    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);
     7namespace 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);
    1412
    15         [DllImport("User32.dll", CharSet=CharSet.Auto)]
    16         public static extern IntPtr GetFocus();
     13    [DllImport("User32.dll", CharSet = CharSet.Auto)]
     14    public static extern IntPtr GetFocus();
    1715
    18         [DllImport("User32.dll", CharSet=CharSet.Auto)]
    19         public static extern IntPtr SetFocus(IntPtr hWnd);
     16    [DllImport("User32.dll", CharSet = CharSet.Auto)]
     17    public static extern IntPtr SetFocus(IntPtr hWnd);
    2018
    21         [DllImport("User32.dll", CharSet=CharSet.Auto)]
    22         [return: MarshalAs(UnmanagedType.Bool)]
    23         public static extern bool PostMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam);
     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);
    2422
    25         [DllImport("User32.dll", CharSet=CharSet.Auto)]
    26         public static extern uint SendMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam);
     23    [DllImport("User32.dll", CharSet = CharSet.Auto)]
     24    public static extern uint SendMessage(IntPtr hWnd, int Msg, uint wParam, uint lParam);
    2725
    28         [DllImport("User32.dll", CharSet=CharSet.Auto)]
    29         public static extern int ShowWindow(IntPtr hWnd, short cmdShow);
     26    [DllImport("User32.dll", CharSet = CharSet.Auto)]
     27    public static extern int ShowWindow(IntPtr hWnd, short cmdShow);
    3028
    31         [DllImport("User32.dll", CharSet=CharSet.Auto)]
    32         public static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndAfter, int X, int Y, int Width, int Height, FlagsSetWindowPos flags);
     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);
    3331
    34     [DllImport("user32.dll", CharSet = CharSet.Auto)]
    35     public static extern int GetWindowLong(IntPtr hWnd, int Index);
     32    [DllImport("user32.dll", CharSet = CharSet.Auto)]
     33    public static extern int GetWindowLong(IntPtr hWnd, int Index);
    3634
    37     [DllImport("user32.dll", CharSet = CharSet.Auto)]
    38     public static extern int SetWindowLong(IntPtr hWnd, int Index, int Value);
     35    [DllImport("user32.dll", CharSet = CharSet.Auto)]
     36    public static extern int SetWindowLong(IntPtr hWnd, int Index, int Value);
    3937
    40     [DllImport("user32.dll", CharSet=CharSet.Auto)]
    41     public static extern int ShowScrollBar(IntPtr hWnd, int wBar, int bShow);
     38    [DllImport("user32.dll", CharSet = CharSet.Auto)]
     39    public static extern int ShowScrollBar(IntPtr hWnd, int wBar, int bShow);
    4240
    43     [DllImport("user32.dll", CharSet=CharSet.Auto)]
    44         //*********************************
    45         // FxCop bug, suppress the message
    46         //*********************************
    47         [SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", MessageId = "0")]
    48     public static extern IntPtr WindowFromPoint(Point point);
     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);
    4947
    50         [DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
    51         public static extern int GetCurrentThreadId();
     48    [DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
     49    public static extern int GetCurrentThreadId();
    5250
    53         public delegate IntPtr HookProc(int code, IntPtr wParam, IntPtr lParam);
     51    public delegate IntPtr HookProc(int code, IntPtr wParam, IntPtr lParam);
    5452
    55         [DllImport("user32.dll")]
    56         public static extern IntPtr SetWindowsHookEx(Win32.HookType code, HookProc func, IntPtr hInstance, int threadID);
     53    [DllImport("user32.dll")]
     54    public static extern IntPtr SetWindowsHookEx(Win32.HookType code, HookProc func, IntPtr hInstance, int threadID);
    5755
    58         [DllImport("user32.dll")]
    59         public static extern int UnhookWindowsHookEx(IntPtr hhook);
     56    [DllImport("user32.dll")]
     57    public static extern int UnhookWindowsHookEx(IntPtr hhook);
    6058
    61         [DllImport("user32.dll")]
    62         public static extern IntPtr CallNextHookEx(IntPtr hhook, int code, IntPtr wParam, IntPtr lParam);
    63   }
     59    [DllImport("user32.dll")]
     60    public static extern IntPtr CallNextHookEx(IntPtr hhook, int code, IntPtr wParam, IntPtr lParam);
     61  }
    6462}
Note: See TracChangeset for help on using the changeset viewer.