代码拉取完成,页面将自动刷新
同步操作将从 葡萄城/ComponentOne_Winform 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Configuration;
using System.Runtime.InteropServices;
namespace ControlExplorer
{
static class Program
{
internal static int WM_UpdateDemoStatus;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
WM_UpdateDemoStatus = RegisterWindowMessage("UpdateDemoStatus");
ChangeWindowMessageFilter(WM_UpdateDemoStatus, 1 /* MSGFLT_ADD */);
if (args.Length > 0)
{
int action;
if (!int.TryParse(args[0], out action))
{
return;
}
IntPtr hWnd = FindWindow(IntPtr.Zero, "Jump List Demo");
if (hWnd != IntPtr.Zero)
{
SetForegroundWindow(hWnd);
PostMessage(hWnd, WM_UpdateDemoStatus, new IntPtr(action), IntPtr.Zero);
return;
}
Win7Pack.JumpTaskDemo.Action = (Win7Pack.JumpTaskAction)action;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Explorer());
}
[DllImport("user32.dll", ExactSpelling = true)]
private static extern bool ChangeWindowMessageFilter(int message, int dwFlag);
[DllImport("user32.dll", EntryPoint = "FindWindowW", CharSet = CharSet.Unicode)]
private static extern IntPtr FindWindow(IntPtr lpClassName /* Dummy */,
[MarshalAs(UnmanagedType.LPWStr)] string lpWindowName);
[DllImport("user32.dll", EntryPoint = "PostMessageW", CharSet = CharSet.Unicode)]
internal static extern IntPtr PostMessage(IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam);
[DllImport("user32.dll", EntryPoint = "RegisterWindowMessageW", CharSet = CharSet.Unicode)]
private static extern int RegisterWindowMessage([MarshalAs(UnmanagedType.LPWStr)] string lpString);
[DllImport("user32.dll", ExactSpelling = true)]
internal static extern bool SetForegroundWindow(IntPtr hWnd);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。