/// <summary> /// post消息到窗口 /// </summary> /// <param name="intPtr"></param> /// <param name="msg"></param> /// <param name="wParam"></param> /// <param name="lParam"></param> public static void PostMessage(IntPtr intPtr, int msg, int wParam = 1, int lParam = 0) { User32Api.PostMessage(intPtr, msg, wParam, lParam); }