博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C#:使用Window自带函数(如:user32.dll)
阅读量:5753 次
发布时间:2019-06-18

本文共 1428 字,大约阅读时间需要 4 分钟。

[DllImport("user32.dll", EntryPoint = "GetScrollInfo", CallingConvention = CallingConvention.StdCall)]        public static extern bool GetScrollInfo(IntPtr hwnd, int fnBar, ref SCROLLINFO lpsi);        [DllImport("user32.dll", EntryPoint = "SetScrollInfo", CallingConvention = CallingConvention.StdCall)]        public static extern int SetScrollInfo(IntPtr hwnd, int fnBar, [In] ref SCROLLINFO lpsi, bool fRedraw);        [DllImport("User32.dll", CharSet = CharSet.Auto, EntryPoint = "SendMessage", CallingConvention =CallingConvention.Cdecl)]        static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);        [DllImport("user32.dll", CharSet = CharSet.Auto, EntryPoint = "PostMessage")]          public static extern bool PostMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);        [DllImport("gdi32.dll")]        public static extern int CreateRoundRectRgn(int x1, int y1, int x2, int y2, int x3, int y3);        [DllImport("user32.dll")]        public static extern int SetWindowRgn(IntPtr hwnd, int hRgn, Boolean bRedraw);        [DllImport("user32.dll")]        [return: MarshalAs(UnmanagedType.Bool)]        public static extern bool ShowScrollBar(IntPtr hWnd, int wBar, bool bShow);        [DllImport("user32.dll")]        public static extern IntPtr GetWindowDC(IntPtr hWnd);        [DllImport("user32.dll")]        public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);

 

转载地址:http://nwckx.baihongyu.com/

你可能感兴趣的文章
微信小程序之wx.navigateback往回携带参数
查看>>
陌陌和请吃饭之类的应用,你要是能玩转,那就厉害了
查看>>
递归的运行机制简单理解
查看>>
汉字转阿斯克马值
查看>>
Java 栈与堆简介
查看>>
【supervisord】部署单进程服务的利器
查看>>
zabbix oracle监控插件orabbix部署安装
查看>>
python3 通过qq 服务器 发送邮件
查看>>
java 多线程踩过的坑
查看>>
部署Replica Sets及查看相关配置
查看>>
倒序显示数组(从右往左)
查看>>
LeetCode2_Evaluate Reverse Polish Notation评估逆波兰表达式(栈)
查看>>
文献综述二:UML技术在行业资源平台系统建模中的应用
查看>>
阿里云服务器 linux下载 jdk
查看>>
Swift 学习 用 swift 调用 oc
查看>>
第三章 Python 的容器: 列表、元组、字典与集合
查看>>
微信小程序开发 -- 点击右上角实现转发功能
查看>>
问题解决-Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha7
查看>>
与MS Project相关的两个项目
查看>>
[转载]ASP.NET MVC Music Store教程(1):概述和新项目
查看>>