⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apiswndproc.cs

📁 SharpDevelop2.0.0 c#开发免费工具
💻 CS
字号:
using System;
using System.Runtime.InteropServices;

namespace System.Runtime.InteropServices.APIs
{
	public class APIsWndProc
	{
		[DllImport("user32.dll")]
		public static extern IntPtr SetWindowLong(
			IntPtr window,
			int index,
			WndProc value);

		[DllImport("user32.dll")]
		public static extern IntPtr SetWindowLong(
			IntPtr window,
			int index,
			GetWndProc value);

		[DllImport("user32.dll")]
		public static extern IntPtr SetWindowLong(
			IntPtr window,
			int index,
			IntPtr value);

		[DllImport("user32.dll")]
		public static extern int GetWindowLong(
			IntPtr window,
			int index);

		[DllImport("user32.dll")]
		public static extern int CallWindowProc(
			IntPtr value,
			IntPtr Handle,
			int Msg,
			IntPtr WParam,
			IntPtr LParam);

		[DllImport("user32.dll")]
		public static extern int DefWindowProc(
			IntPtr Handle,
			int Msg,
			IntPtr WParam,
			IntPtr LParam);

		public delegate int GetWndProc(IntPtr hWnd, int Msg, IntPtr WParam, IntPtr LParam);
		public delegate void WndProc(ref System.Windows.Forms.Message m);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -