coredll.cs.svn-base
来自「这是一个windows mobile程序能够实现窗体运货效果非常不错」· SVN-BASE 代码 · 共 49 行
SVN-BASE
49 行
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace Aspecto
{
public class Coredll
{
[DllImport("coredll", EntryPoint = "SystemParametersInfo", SetLastError = true)]
public static extern bool GetSystemParameterString(uint sysParam, uint bufferSize, StringBuilder stringBuffer, bool updateWinIni);
#region Windows
[DllImport("coredll")]
public static extern IntPtr FindWindow(string className, string name);
[DllImport("coredll")]
public static extern int GetWindowText(IntPtr hWnd, StringBuilder sb, int maxCount);
[DllImport("coredll")]
public static extern int GetWindowTextLength(IntPtr hWnd);
[DllImport("coredll")]
public static extern bool SipSetInfo(bool[] ip);
[DllImport("coredll")]
public static extern IntPtr GetForegroundWindow();
[DllImport("coredll")]
public static extern bool SetForegroundWindow(IntPtr hWnd);
[DllImport("coredll")]
public static extern IntPtr GetWindow(IntPtr ptr, uint c);
[DllImport("coredll")]
public static extern bool UpdateWindow(IntPtr ptr);
/// <summary>
/// </summary>
/// <param name="hWnd">handle to window</param>
/// <param name="lpRect">rectangle coordinates, Zero for all</param>
/// <param name="bErase">erase background state</param>
/// <returns></returns>
[DllImport("coredll")]
public static extern bool InvalidateRect(IntPtr hWnd, IntPtr lpRect, bool bErase);
#endregion
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?