------ #### RaUIV4 V4.0.2311.0701 - *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。 - *.[新增]新增ApkOp类,可以轻松获取APK信息。 - *.[新增]新增JsonExt扩展类,让Json操作更简单。 - *.[新增]新增WebP类,可以支持webp格式的图片。 - *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。 - *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
61 lines
2.5 KiB
C#
61 lines
2.5 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Runtime.InteropServices;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using WeifenLuo.WinFormsUI.Docking.Win32;
|
|
|
|
namespace WeifenLuo.WinFormsUI.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 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);
|
|
}
|
|
} |