winapi sendmessage
public const int WM_ENABLE = 0x000A;
[DllImport("User32.dll", EntryPoint = "SendMessage")]
public static extern int SendMessage(int hwnd, int wMsg, int wParam, int lParam);
int handle = 657460;
WinApi.SendMessage(handle, WinApi.WM_ENABLE, 0, 0);
这个方法是想要某个控件(checkbox)不可用,可是为什么不起作用呢?