VS2010 C++学习(2):BMP图像文件的结构分析、反色处理、平滑处理代码
2023-12-06 08:01:13 1.65MB VS2010 图像处理
1
VS2010 C++学习(1):滚动条的设计总结程序
2023-12-06 08:00:46 203KB VS2010
1
很清楚的解释了接口与抽象类,和类的组织结构。
2023-12-03 05:01:20 48KB 接口 抽象类
1
using System; using System.Runtime.InteropServices; using System.Reflection; using System.Windows.Forms; namespace KeyboardHook { public enum KeyboardEvents { KeyDown = 0x0100, KeyUp = 0x0101, SystemKeyDown = 0x0104, SystemKeyUp = 0x0105 } [StructLayout(LayoutKind.Sequential)] public struct KeyboardHookStruct { public int vkCode; //表示一个在1到254间的虚似键盘码 public int scanCode; //表示硬件扫描码 public int flags; public int time; public int dwExtraInfo; } public delegate void KeyboardEventHandler(KeyboardEvents keyEvent, System.Windows.Forms.Keys key); public class Hook { public event KeyboardEventHandler KeyboardEvent; public enum HookType { WH_JOURNALRECORD = 0, WH_JOURNALPLAYBACK = 1, WH_KEYBOARD = 2, WH_GETMESSAGE = 3, WH_CALLWNDPROC = 4, WH_CBT = 5, WH_SYSMSGFILTER = 6, WH_MOUSE = 7, WH_HARDWARE = 8, WH_DEBUG = 9, WH_SHELL = 10, WH_FOREGROUNDIDLE = 11, WH_CALLWNDPROCRET = 12, WH_KEYBOARD_LL = 13, WH_MOUSE_LL = 14, WH_MSGFILTER = -1, } public delegate IntPtr HookProc(int code, int wParam, IntPtr lParam); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern IntPtr SetWindowsHookEx(HookType hookType, HookProc hook, IntPtr instance, int threadID); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern IntPtr CallNextHookEx(IntPtr hookHandle, int code, int wParam, IntPtr lParam); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern bool UnhookWindowsHookEx(IntPtr hookHandle); private IntPtr instance; private IntPtr hookHandle; private int threadID; private HookProc hookProcEx; public Hook() { this.instance = Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]); this.threadID = 0; hookHandle = IntPtr.Zero; hookProcEx = new HookProc(hookProc); } public bool SetHook() { this.hookHandle = SetWindowsHookEx(HookType.WH_KEYBOARD_LL, hookProcEx, this.instance, this.threadID); return ((int)hookHandle != 0); } public IntPtr hookProc(int code, int wParam, IntPtr lParam) { if (code >= 0) { KeyboardEvents kEvent = (KeyboardEvents)wParam; if (kEvent != KeyboardEvents.KeyDown && kEvent != KeyboardEvents.KeyUp && kEvent != KeyboardEvents.SystemKeyDown && kEvent != KeyboardEvents.SystemKeyUp) { return CallNextHookEx(this.hookHandle, (int)HookType.WH_KEYBOARD_LL, wParam, lParam); } KeyboardHookStruct MyKey = new KeyboardHookStruct(); Type t = MyKey.GetType(); MyKey = (KeyboardHookStruct)Marshal.PtrToStructure(lParam, t); Keys keyData = (Keys)MyKey.vkCode; KeyboardEvent(kEvent, keyData); } return CallNextHookEx(this.hookHandle, (int)HookType.WH_KEYBOARD_LL, wParam, lParam); } public bool UnHook() { return Hook.UnhookWindowsHookEx(this.hookHandle); } } }
2023-11-30 05:06:49 70KB 键盘钩子
1
一个用来计时的C#程序,用于演讲时给予选手时间的提示。所用.net framework 4.0框架
2023-11-27 05:05:10 2.49MB
1
1.Excel2003、2007及2010格式的数据导入导出。 2.将Excel2003、2007及2010格式的数据报表导入到datagridview中预览 3.将datagridview中的数据导出为Excel2003、2007及2010格式的数据保存或查看。
2023-11-26 05:05:02 429KB Excel数据导出导入
1
1.支持对Excel2003、2007及Excel2010的数据导出及导入。 2.将Excel2003、2007及Excel2010格式的报表数据直接导入到datagridview中预览。 3.也可以将datagridview报表导出到Excel2003、2007及2010格式的Excel文件
2023-11-26 05:04:41 418KB Excel 数据导出 数据导入
1
这是清华大学c#游戏开发书籍代码,里面包含了10几个小游戏源代码,对于通过c#开发游戏来说非常有帮助。
2023-11-25 23:48:04 41.14MB c#游戏开发
1
古剑奇谭存档物品修改器 1. 存档自动备份 2. 物品搜索修改 3. 一键修改 4. 分类详细 5. 物品说明 vs2010开发,包含较为详细的注释
2023-11-21 05:02:05 1.27MB vs2010 古剑奇谭
1
VS2010常用插件包,包含了常用的插件,如GhostDoc、Vsintlpack2、codecompare等,可为开发者大幅度提高开发效率
2023-11-15 09:58:11 24.05MB VS2010 自动注释 代码对比
1