⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coredll.cs.svn-base

📁 这是一个windows mobile程序能够实现窗体运货效果非常不错
💻 SVN-BASE
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -