日期:2014-05-17 浏览次数:20986 次
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace Galsun.HH.FCX.CodeMerge
{
public static class Win32
{
/// <summary>
/// 释放鼠标操作
/// </summary>
/// <returns></returns>
[DllImport("user32.dll")]
public static extern bool ReleaseCapture();
/// <summary>
/// 发送信息
/// </summary>
/// <param name="hwnd"></param>
/// <param name="wMsg"></param>
/// <param name="wParam"></param>
/// <param name="lParam"></param>
/// <returns></returns>
[DllImport("user32.dll")]
public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
/// <summary>
/// 窗体最小化操作
/// </summary>
/// <param name="hwnd"></param>
/// <returns></returns>
[DllImport("user32.dll")]
public static extern bool CloseWindow(IntPtr hwnd);
/// <summary>
/// 获取窗体状态信息
------解决方案--------------------
最小化
------解决方案--------------------
最大化
------解决方案--------------------
移动
------解决方案--------------------
关闭
/// </summary>
/// <param name="hwnd"></param>
/// <param name="nindex"></param>
/// <returns></returns>
[DllImport("user32.dll")]
public static extern int GetWi