apiswndproc.cs
来自「树形列表控件」· CS 代码 · 共 50 行
CS
50 行
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 + =
减小字号Ctrl + -
显示快捷键?